Fix checklist input alignment: fixed-width label and unit columns
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -427,12 +427,12 @@
|
||||
</span>
|
||||
<form method="POST" action="?/saveChecklistValue" use:enhance class="flex items-center gap-2">
|
||||
<input type="hidden" name="itemId" value={item.id} />
|
||||
<span class="text-sm text-gray-700 dark:text-gray-300">{item.text}</span>
|
||||
<span class="w-28 flex-shrink-0 truncate text-sm text-gray-700 dark:text-gray-300" title={item.text}>{item.text}</span>
|
||||
<input type="text" name="value" value={item.value ?? ''}
|
||||
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" />
|
||||
{#if item.unit}
|
||||
<span class="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}
|
||||
<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>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user