fix(shopping): remove old flat-list li styles causing visual doubling
.shopping-items li was the old single-list item rule. After the multi-list refactor, the direct children of .shopping-items are <li class="shopping-list-box"> wrappers, not individual items. The old rule gave the box the same background + border + padding + tap-target as the .shopping-item divs inside it — making each list look like it appeared twice. Drop the generic li rule entirely. Items are styled via .shopping-item, boxes via .shopping-list-box, empty state via .shopping-items .empty. Also dedup by card_uid in loadShopping JS as a safety net. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
59be08a8f8
commit
5c9e9254d1
2 files changed
+10
-11
No files matched your search
+2
-10
@@ -267,16 +267,8 @@ label.checkbox input[type="checkbox"] { accent-color:var(--accent); cursor:point
|
||||
unchecked items only, tap to flip. */
|
||||
.shopping-wrap { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
|
||||
.shopping-top { display: flex; align-items: center; gap: 10px; padding: 6px 2px; }
|
||||
.shopping-items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
|
||||
.shopping-items li {
|
||||
background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
|
||||
padding: 14px 16px; font-size: 16px; cursor: pointer; user-select: none;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
transition: transform 0.12s, opacity 0.3s, background 0.12s;
|
||||
}
|
||||
.shopping-items li:active { transform: scale(0.98); background: var(--raised, var(--surface)); }
|
||||
.shopping-items li.checked { opacity: 0.35; text-decoration: line-through; }
|
||||
.shopping-items .empty { text-align: center; padding: 40px 16px; color: var(--dim); background: transparent; border: none; cursor: default; list-style: none; }
|
||||
.shopping-items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
|
||||
.shopping-items .empty { list-style: none; text-align: center; padding: 40px 16px; color: var(--dim); background: transparent; border: none; cursor: default; }
|
||||
.shopping-items .empty:active { transform: none; }
|
||||
|
||||
/* Multi-list stacked boxes */
|
||||
|
||||
Reference in new issue
Block a user