From 33bef8eb3fad7d3a68056235f5c24d5f0e101f9d Mon Sep 17 00:00:00 2001 From: Ulas Date: Tue, 31 Mar 2026 12:47:37 +0200 Subject: [PATCH] feat: wrap shopping items in swipe-row --- public/pages/shopping.js | 39 +++++++++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/public/pages/shopping.js b/public/pages/shopping.js index 69a7419..b0bcef9 100644 --- a/public/pages/shopping.js +++ b/public/pages/shopping.js @@ -182,22 +182,33 @@ function renderItems() { } function renderItem(item) { + const isDone = Boolean(item.is_checked); return ` -
- -
-
${item.name}
- ${item.quantity ? `
${item.quantity}
` : ''} +
+ + +
+ +
+
${item.name}
+ ${item.quantity ? `
${item.quantity}
` : ''} +
+
-
`; }