From 6496d0660abf781ff2a76f97f9a5c03034d6cf45 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 26 Nov 2026 10:42:40 +0100 Subject: feat(windows): horizontal strips grouped by workspace or app The window grid becomes horizontal strips with All, Workspace and App filters. Grouped views get one strip per workspace or app class, headed by its icon; the choice is kept in localStorage. A strip is not rebuilt while touched or within a second of scrolling, and keeps its scroll. Co-Authored-By: Claude Opus 5.5 --- static/deck.css | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'static/deck.css') diff --git a/static/deck.css b/static/deck.css index fdb79de..1bebd1a 100644 --- a/static/deck.css +++ b/static/deck.css @@ -225,7 +225,18 @@ select { content: ""; position: absolute; left: 50%; bottom: -10px; width: 6px; height: 6px; border-radius: 3px; background: var(--udt-accent); transform: translateX(-50%); } -.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 14px; } +.whead { display: flex; align-items: center; justify-content: space-between; gap: 12px; } +.wfilter { display: flex; gap: 8px; } +.wfilter .wtile { min-height: 44px; font-size: 1rem; } +.wrows { display: flex; flex-direction: column; gap: 16px; } +.wrow { display: flex; align-items: center; gap: 12px; } +.wlabel { + flex: none; width: 56px; min-height: 56px; display: grid; place-items: center; + color: var(--udt-accent); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; +} +.wlabel img { width: 40px; height: 40px; object-fit: contain; } +.wstrip { flex: 1; min-width: 0; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; } +.wstrip .wcard { flex: 0 0 260px; scroll-snap-align: start; } .wcard { display: flex; flex-direction: column; gap: 6px; padding: 0; font: inherit; background: none; border: 0; color: inherit; cursor: pointer; min-width: 0; } .wbox { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; -- cgit v1.2.3