Top bar layout, adaptive sidebar menu and custom logo

- logo and DSP choice on the left, menu and buttons on the right
- the menu becomes a sidebar when it no longer fits in the top bar (measured, so it
  works for every language and device name); phones keep the bottom bar with short labels
- custom logo in the settings: any PNG/JPG/WebP/SVG is scaled to a 128x128 PNG,
  shown top left and as the browser icon, stored by the server and in the backup

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
GivouandClaude Opus 5.5 committed 2026-11-01 23:07:53 +01:00
1 parent 3a85f62225
commit cf0adc01fe
6 files changed
+151 -10

No files matched your search

+36 -2
View File
@@ -79,7 +79,8 @@ label.inline { display: flex; align-items: center; gap: 8px; font-size: 13px; co
.dot.error { background: var(--bad); }
@keyframes blink { 50% { opacity: .3; } }
#viewtabs { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 3px; flex: none; }
#viewtabs { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 3px; flex: none;
margin-left: auto; } /* logo + DSP choice on the left, menu and buttons on the right */
#viewtabs button { border: 0; background: none; min-height: 36px; padding: 6px 14px; color: var(--dim); border-radius: 8px; }
#viewtabs button svg { width: 18px; height: 18px; }
#viewtabs button svg .f { fill: currentColor; stroke: none; }
@@ -100,7 +101,8 @@ body[data-view=settings] #viewtabs button.active { background: none; color: var(
/* phones: view switcher becomes a bottom navigation bar */
@media (max-width: 759px) {
:root { --bnav: calc(62px + env(safe-area-inset-bottom)); }
.brand { display: none; }
.brand img, .brand svg { width: 24px; height: 24px; }
#btn-muteall { margin-left: auto; } /* the menu moved to the bottom bar: buttons stay on the right */
/* backdrop-filter would make the header the containing block of the fixed bottom bar */
#top { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
#viewtabs {
@@ -607,3 +609,35 @@ button.devitem .dn { flex: 1; text-align: left; overflow: hidden; text-overflow:
button.devitem .where { font-size: 11px; color: var(--dim); }
button.devitem small { font-size: 11px; color: var(--dim); background: var(--panel3); border-radius: 5px; padding: 1px 5px; }
button.devitem.paused, button.devitem:disabled { opacity: .45; cursor: not-allowed; }
/* ---- custom logo */
.brand img { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; display: block; }
.logorow { align-items: flex-start; gap: 14px; }
.logoprev { width: 72px; height: 72px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 12px;
background: repeating-conic-gradient(#ffffff10 0 25%, transparent 0 50%) 0 0 / 14px 14px, var(--panel2); border: 1px solid var(--line); }
.logoprev img, .logoprev svg { width: 56px; height: 56px; object-fit: contain; }
/* ---- menu as a sidebar when the top bar is too narrow (tablets, small windows) */
:root { --side: 92px; }
@media (min-width: 760px) {
body.navside #viewtabs { position: fixed; top: var(--hdr); left: 0; bottom: 0; width: var(--side); z-index: 15; margin: 0;
flex-direction: column; gap: 4px; padding: 8px 6px max(8px, env(safe-area-inset-bottom)); overflow-y: auto;
border: 0; border-right: 1px solid var(--line); border-radius: 0; background: var(--panel); }
body.navside #viewtabs button { flex-direction: column; gap: 4px; width: 100%; min-height: 60px; padding: 8px 4px; font-size: 11px;
line-height: 1.15; text-align: center; white-space: normal; }
body.navside #viewtabs button svg { width: 22px; height: 22px; }
body.navside #statusbar, body.navside #main { margin-left: var(--side); }
body.navside #main { max-width: none; }
body.navside #btn-muteall { margin-left: auto; }
/* backdrop-filter would make the header the containing block of the fixed sidebar */
body.navside #top { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
}
/* phones: all menu items fit in the bottom bar, long labels are shortened */
@media (max-width: 759px) {
#viewtabs button { min-width: 0; font-size: 10px; letter-spacing: 0; }
#viewtabs button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#viewtabs button:has(.short) > span:not(.short) { display: none; } /* long labels: short form in the bottom bar */
#viewtabs button span.short { display: inline; }
}
#viewtabs button .short { display: none; }
.logorow + .actions { margin-top: 12px; }