@humandialog/forms.svelte 1.4.9 → 1.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -367,7 +367,7 @@ function calculateBackground(is_highlighted, active) {
|
|
|
367
367
|
{@const active = calculateBackground(isFocused, false)}
|
|
368
368
|
{@const has_submenu = operation.menu !== undefined && operation.menu.length > 0}
|
|
369
369
|
|
|
370
|
-
<button class="block w-full pr-4 text-left flex flex-row cursor-context-menu {active} focus:outline-none"
|
|
370
|
+
<button class="block w-full pr-4 text-left flex flex-row cursor-context-menu {active} focus:outline-none items-center"
|
|
371
371
|
id={menu_item_id}
|
|
372
372
|
bind:this={menu_items[index]}
|
|
373
373
|
on:click|stopPropagation={(e) => { execute_action(e, operation, index) } }
|
|
@@ -377,7 +377,7 @@ function calculateBackground(is_highlighted, active) {
|
|
|
377
377
|
disabled={operation.disabled}
|
|
378
378
|
class:opacity-60={operation.disabled}>
|
|
379
379
|
|
|
380
|
-
<div class="flex
|
|
380
|
+
<div class="flex justify-center space-x-10 px-4 py-2 ml-12 sm:ml-0" >
|
|
381
381
|
{#if operation.icon}
|
|
382
382
|
{@const cc = mobile ? 7 : 6}
|
|
383
383
|
{@const icon_size = icon_placeholder_size - cc}
|
|
@@ -388,11 +388,10 @@ function calculateBackground(is_highlighted, active) {
|
|
|
388
388
|
<div class="w-4 h-4"></div>
|
|
389
389
|
{/if}
|
|
390
390
|
</div>
|
|
391
|
-
<div class="
|
|
392
|
-
|
|
391
|
+
<div class="">
|
|
392
|
+
<p class=""> {operation.caption}</p>
|
|
393
393
|
{#if operation.description}
|
|
394
|
-
|
|
395
|
-
<p class="truncate inline-block">
|
|
394
|
+
<p class="truncate inline-block text-xs">
|
|
396
395
|
{operation.description}
|
|
397
396
|
</p>
|
|
398
397
|
{/if}
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
</script>
|
|
186
186
|
|
|
187
187
|
{#if view==TAGS_PALETTE}
|
|
188
|
-
<menu class="{userClass} flex flex-column {gap} flex-wrap mr-1 sm:mr-0 sm:w-72">
|
|
188
|
+
<menu class="{userClass} flex flex-column {gap} flex-wrap mr-1 sm:mr-0 sm:w-72 text-stone-600 dark:text-stone-300">
|
|
189
189
|
<p class="flex flex-row {gap} flex-wrap ">
|
|
190
190
|
{#key filteredTags}
|
|
191
191
|
{#if filteredTags.length > 0}
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
|
|
207
207
|
<input type="text" name="text" id="text"
|
|
208
208
|
autocomplete="off"
|
|
209
|
-
class="block bg-stone-100 dark:bg-stone-800 flex-1"
|
|
209
|
+
class="block bg-stone-100 dark:bg-stone-800 flex-1 text-stone-700 dark:text-stone-200"
|
|
210
210
|
bind:value={inputText}
|
|
211
211
|
on:input={onTextInput}
|
|
212
212
|
on:blur={onTextBlur}
|