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:
@@ -273,7 +273,15 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</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">
|
<div class="flex flex-wrap gap-2">
|
||||||
{#if newItemIsApproximate}
|
{#if newItemIsApproximate}
|
||||||
<input
|
<input
|
||||||
@@ -288,16 +296,6 @@
|
|||||||
allowedUnitCategories={newItemAllowedUnitCategories}
|
allowedUnitCategories={newItemAllowedUnitCategories}
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/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}
|
{#if sections.length > 0}
|
||||||
<select
|
<select
|
||||||
bind:value={newItemSectionId}
|
bind:value={newItemSectionId}
|
||||||
|
|||||||
Reference in New Issue
Block a user