Align checklist input fields to the right side
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -425,9 +425,10 @@
|
|||||||
</svg>
|
</svg>
|
||||||
{/if}
|
{/if}
|
||||||
</span>
|
</span>
|
||||||
<form method="POST" action="?/saveChecklistValue" use:enhance class="flex items-center gap-2">
|
<form method="POST" action="?/saveChecklistValue" use:enhance class="flex flex-1 items-center gap-2">
|
||||||
<input type="hidden" name="itemId" value={item.id} />
|
<input type="hidden" name="itemId" value={item.id} />
|
||||||
<span class="w-28 flex-shrink-0 truncate text-sm text-gray-700 dark:text-gray-300" title={item.text}>{item.text}</span>
|
<span class="truncate text-sm text-gray-700 dark:text-gray-300" title={item.text}>{item.text}</span>
|
||||||
|
<div class="ml-auto flex items-center gap-2">
|
||||||
<input type="text" name="value" value={item.value ?? ''}
|
<input type="text" name="value" value={item.value ?? ''}
|
||||||
placeholder="—"
|
placeholder="—"
|
||||||
class="w-24 rounded border border-gray-200 px-2 py-0.5 text-sm text-right font-mono focus:border-blue-500 focus:ring-1 focus:ring-blue-500 focus:outline-none dark:border-gray-600 dark:bg-gray-700 dark:text-white" />
|
class="w-24 rounded border border-gray-200 px-2 py-0.5 text-sm text-right font-mono focus:border-blue-500 focus:ring-1 focus:ring-blue-500 focus:outline-none dark:border-gray-600 dark:bg-gray-700 dark:text-white" />
|
||||||
@@ -435,6 +436,7 @@
|
|||||||
<span class="w-10 flex-shrink-0 text-xs text-gray-400 dark:text-gray-500">{item.unit}</span>
|
<span class="w-10 flex-shrink-0 text-xs text-gray-400 dark:text-gray-500">{item.unit}</span>
|
||||||
{/if}
|
{/if}
|
||||||
<button type="submit" class="rounded px-1.5 py-0.5 text-xs text-blue-600 hover:bg-blue-50 dark:text-blue-400 dark:hover:bg-blue-900/20">Save</button>
|
<button type="submit" class="rounded px-1.5 py-0.5 text-xs text-blue-600 hover:bg-blue-50 dark:text-blue-400 dark:hover:bg-blue-900/20">Save</button>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{:else}
|
{:else}
|
||||||
<!-- Checkbox -->
|
<!-- Checkbox -->
|
||||||
|
|||||||
Reference in New Issue
Block a user