Give shopping list item name field full-width row

The name field was crammed into a single flex row with qty/unit inputs,
section dropdown, and Add button, leaving it too narrow to use. Moved
it above the controls row so it spans full width.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Josh Rogers
2026-05-14 19:56:19 -05:00
parent b31ff77548
commit 7b7e871827
@@ -273,7 +273,15 @@
</button>
</div>
<form onsubmit={e => { e.preventDefault(); addItem(); }} class="mb-4 space-y-1">
<form onsubmit={e => { e.preventDefault(); addItem(); }} class="mb-4 space-y-2">
<ProductTypeahead
bind:value={newItemName}
placeholder="Add an item..."
ariaLabel="Item name"
inputClass="w-full rounded-lg border border-gray-300 px-3 py-2.5 text-base focus:border-primary focus:outline-none"
onsubmit={addItem}
onProductChange={onItemProductChange}
/>
<div class="flex flex-wrap gap-2">
{#if newItemIsApproximate}
<input
@@ -288,16 +296,6 @@
allowedUnitCategories={newItemAllowedUnitCategories}
/>
{/if}
<div class="min-w-0 flex-1">
<ProductTypeahead
bind:value={newItemName}
placeholder="Add an item..."
ariaLabel="Item name"
inputClass="w-full rounded-lg border border-gray-300 px-3 py-2.5 text-base focus:border-primary focus:outline-none"
onsubmit={addItem}
onProductChange={onItemProductChange}
/>
</div>
{#if sections.length > 0}
<select
bind:value={newItemSectionId}