aboutsummaryrefslogtreecommitdiffstats
path: root/static/deck.css
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-10 16:36:23 +0100
committerDanilo M. <danix@danix.xyz>2026-11-10 16:36:23 +0100
commitcdb96a6fcf60716b5fb96cc999d452e75b75ed42 (patch)
tree032612b51af870b7b54d7d8f68430d9c92ab8563 /static/deck.css
parent5a8da8ab392266d5f3bbf3abed61472d6734f31c (diff)
downloaddeck-it-cdb96a6fcf60716b5fb96cc999d452e75b75ed42.tar.gz
deck-it-cdb96a6fcf60716b5fb96cc999d452e75b75ed42.zip
feat: icons in the tab bar
Each tab is a Nerd Font glyph (gauge, windows, camera, chat, printer), with the name only next to the active one; a tab without an icon keeps its name. Swipes find tabs by data-tab now that the text is not the name. The reload button is the refresh glyph. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static/deck.css')
-rw-r--r--static/deck.css3
1 files changed, 3 insertions, 0 deletions
diff --git a/static/deck.css b/static/deck.css
index 98a2c2a..1ec72b6 100644
--- a/static/deck.css
+++ b/static/deck.css
@@ -74,6 +74,9 @@ body {
background: var(--udt-surface0);
border-color: var(--udt-surface1);
}
+.tabs button { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; }
+.tabs button .nf { font-size: 1.5rem; line-height: 1; margin-right: 6px; } /* the glyphs draw past their advance */
+.tabs button:not(.active):not(.named) span { display: none; }
#tab-body { flex: 1; min-height: 0; overflow: auto; }
.tab-panel {