You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by da...@apache.org on 2023/03/23 11:52:28 UTC

[daffodil-vscode] branch main updated: move error msg and add instrux in edit vpt in single byte mode

This is an automated email from the ASF dual-hosted git repository.

davin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil-vscode.git


The following commit(s) were added to refs/heads/main by this push:
     new 4a0105f  move error msg and add instrux in edit vpt in single byte mode
4a0105f is described below

commit 4a0105ffdfdf4711c00eae7cef8cb2d7ee82fb80
Author: Davin Shearer <22...@users.noreply.github.com>
AuthorDate: Wed Mar 22 09:18:25 2023 -0400

    move error msg and add instrux in edit vpt in single byte mode
---
 src/svelte/src/components/dataEditor.svelte | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

diff --git a/src/svelte/src/components/dataEditor.svelte b/src/svelte/src/components/dataEditor.svelte
index 0e8ca2b..5a99634 100644
--- a/src/svelte/src/components/dataEditor.svelte
+++ b/src/svelte/src/components/dataEditor.svelte
@@ -1095,6 +1095,13 @@ limitations under the License.
         on:click={moveEditByteWindow}>&#8647;</button
       >
     {/if}
+    {#if !$commitable && $commitErrMsg.length > 0}
+      <div
+        style="background-color: black; opacity: 0.75; border-radius: 5px; margin: 4px; padding: 4px;"
+      >
+        <span class="errMsg">{$commitErrMsg}</span>
+      </div>
+    {/if}
   </div>
   <textarea
     class="address_vw"
@@ -1161,7 +1168,11 @@ limitations under the License.
         on:input={handleEditorEvent}
       />
     {:else}
-      <div class="selectedContent" id="editor" />
+      <div class="selectedContent" id="editor">
+        <em class="instructions" style="opacity: 0.5;"
+          >Multiple Byte Editing is <u>disabled</u> in Single Byte Editing Mode</em
+        >
+      </div>
     {/if}
     <!-- Full Mode Content Controls -->
     {#if $editMode === 'full'}
@@ -1275,12 +1286,7 @@ limitations under the License.
       <!-- Simple Mode Content Controls -->
     {:else}
       <fieldset class="box margin-top">
-        <legend
-          >Content Controls
-          {#if !$commitable}
-            <span class="errMsg">{$commitErrMsg}</span>
-          {/if}
-        </legend>
+        <legend>Content Controls </legend>
         <div class="contentControls" id="content_controls">
           <span>
             {#if $undoCount > 0}