v1.1.2 Pole ilości: klawiatura numeryczna i mniejsza szerokość
All checks were successful
Build and Push Docker Images / build-and-push (push) Successful in 1m33s
All checks were successful
Build and Push Docker Images / build-and-push (push) Successful in 1m33s
Pole ilości na liście zakupów przyjmuje teraz tylko cyfry i otwiera na telefonie klawiaturę numeryczną (inputMode=numeric) zamiast zwykłej. Pole ilości jest też wyraźnie węższe niż pole nazwy produktu (wcześniej rosło do tej samej szerokości przez konflikt reguł CSS). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -40,10 +40,12 @@ export default function ShoppingListItemRow({ item, listId }) {
|
||||
/>
|
||||
<input
|
||||
type="text"
|
||||
inputMode="numeric"
|
||||
pattern="[0-9]*"
|
||||
className="shopping-item-qty-input"
|
||||
placeholder={t('shoppingListDetail.quantityPlaceholder')}
|
||||
value={quantity}
|
||||
onChange={(e) => setQuantity(e.target.value)}
|
||||
onChange={(e) => setQuantity(e.target.value.replace(/\D/g, ''))}
|
||||
onBlur={saveEdit}
|
||||
onKeyDown={(e) => e.key === 'Enter' && saveEdit()}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user