From ce631feb5b6daf745fc1fc6c34cbf1eb3ec76fcb Mon Sep 17 00:00:00 2001 From: Kacper Date: Mon, 3 Aug 2026 15:23:09 +0200 Subject: [PATCH] =?UTF-8?q?v1.1.2=20Pole=20ilo=C5=9Bci:=20klawiatura=20num?= =?UTF-8?q?eryczna=20i=20mniejsza=20szeroko=C5=9B=C4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- frontend/src/components/ShoppingListItemRow.jsx | 4 +++- frontend/src/pages/ShoppingListDetail.jsx | 4 +++- frontend/src/styles.css | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/ShoppingListItemRow.jsx b/frontend/src/components/ShoppingListItemRow.jsx index 88c4cc9..880f35b 100644 --- a/frontend/src/components/ShoppingListItemRow.jsx +++ b/frontend/src/components/ShoppingListItemRow.jsx @@ -40,10 +40,12 @@ export default function ShoppingListItemRow({ item, listId }) { /> setQuantity(e.target.value)} + onChange={(e) => setQuantity(e.target.value.replace(/\D/g, ''))} onBlur={saveEdit} onKeyDown={(e) => e.key === 'Enter' && saveEdit()} /> diff --git a/frontend/src/pages/ShoppingListDetail.jsx b/frontend/src/pages/ShoppingListDetail.jsx index 35b26a5..b9442d1 100644 --- a/frontend/src/pages/ShoppingListDetail.jsx +++ b/frontend/src/pages/ShoppingListDetail.jsx @@ -75,10 +75,12 @@ export default function ShoppingListDetail() { /> setItemQuantity(e.target.value)} + onChange={(e) => setItemQuantity(e.target.value.replace(/\D/g, ''))} />