Rework the settings page

- clear sections (general, devices, security / remote access, backup) with headings,
  short descriptions and a sticky quick-jump bar
- cards of equal height per row with their buttons aligned at the bottom, centred page width
- "add a DSP" is a compact card that opens the form (with cancel)
- phones: the DSP button shrinks instead of covering the mute/settings buttons

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
GivouandClaude Opus 5.5 committed 2026-11-01 23:12:15 +01:00
1 parent cf0adc01fe
commit 5fc745cd72
3 files changed
+68 -14

No files matched your search

+33
View File
@@ -641,3 +641,36 @@ button.devitem.paused, button.devitem:disabled { opacity: .45; cursor: not-allow
}
#viewtabs button .short { display: none; }
.logorow + .actions { margin-top: 12px; }
/* ---- settings page */
.setwrap { max-width: 1180px; margin: 0 auto; }
.setnav { position: sticky; top: var(--hdr); z-index: 9; display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 0; margin-bottom: 4px;
background: linear-gradient(var(--bg) 75%, transparent); }
.setnav .chip { min-height: 32px; }
.setsec { margin: 6px 0 30px; scroll-margin-top: calc(var(--hdr) + 58px); }
.setsec > header { margin: 0 2px 12px; }
.setsec > header h2 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: .01em; }
.setsec > header p { margin: 4px 0 0; color: var(--dim); font-size: 13px; max-width: 760px; }
.setgrid { display: grid; gap: 12px; align-items: stretch; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.setgrid.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.setgrid > .card { display: flex; flex-direction: column; margin: 0; }
.setgrid > .card > h3 { margin-bottom: 8px; }
.setgrid > .card > p.info { margin: 0 0 12px; }
.setgrid > .card > :last-child { margin-top: auto; } /* buttons and switches line up at the bottom of each row */
.setgrid > .card > .actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 14px; }
.setgrid > .card > .actions button { flex: 1 1 auto; }
.setgrid > .card .devform { align-content: start; }
.setgrid .seg { width: 100%; }
.setgrid .seg button { min-height: 40px; }
.setgrid > .card .row { gap: 8px; }
.setgrid > .card > .row > button { flex: 1 1 auto; }
button.devadd { min-height: 180px; border: 2px dashed var(--line); background: transparent; flex-direction: column; justify-content: center;
align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; color: var(--dim); }
button.devadd:hover { border-color: var(--accent); color: var(--text); background: var(--panel); }
button.devadd .plus { font-size: 34px; line-height: 1; color: var(--accent); }
button.devadd b { font-size: 15px; color: var(--text); }
.setgrid > button.devadd > :last-child { margin-top: 0; }
/* narrow top bar: the DSP button shrinks (name gets shortened) instead of covering the buttons */
.devpick { min-width: 0; max-width: min(320px, 100%); }
.devpick .dn { min-width: 0; }
@media (max-width: 480px) { .devpick .minidots, .devpick small { display: none; } }