Release v0.7.4 — compact container list in settings rail

This commit is contained in:
Europium 63 committed 2026-10-27 15:11:35 -07:00
1 parent 88f6d06df9
commit 6f1accad47
3 files changed
+23 -5

No files matched your search

+11
View File
@@ -7,6 +7,17 @@ Version numbers follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html
--- ---
## [0.7.4] — 2026-10-27
### Changed
- **Settings rail container list is compact.** Per-container entries are indented
under "All containers" and fit on one line: colored dot, name, then enabled /
disabled in small muted text. The max-error stat is gone. Long names truncate
with an ellipsis, and the status stays visible.
---
## [0.7.3] — 2026-10-27 ## [0.7.3] — 2026-10-27
### Changed ### Changed
+1 -1
View File
@@ -1 +1 @@
__version__ = "0.7.3" __version__ = "0.7.4"
+11 -4
View File
@@ -548,6 +548,13 @@ a.signout:hover { color: var(--ink); border-color: var(--muted); }
margin-top: 0.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 0.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
} }
.settings-rail a:hover:not(.active) { background: #0f1829; color: var(--ink); } .settings-rail a:hover:not(.active) { background: #0f1829; color: var(--ink); }
/* Per-container entries sit under "All containers": indented, one line each. */
.settings-rail a.rail-child { margin-left: 1.1rem; padding-top: 0.32rem; padding-bottom: 0.32rem; align-items: center; }
.settings-rail a.rail-child .rail-ico { font-size: 0.7rem; }
.settings-rail a.rail-child .rail-text { display: flex; align-items: baseline; min-width: 0; white-space: nowrap; }
.settings-rail a.rail-child .rail-name { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.settings-rail a.rail-child .rail-inline-sub { flex-shrink: 0; }
.settings-rail a .rail-inline-sub { font-size: 0.7rem; color: var(--muted); font-weight: 400; margin-left: 0.4rem; }
.settings-rail a.active { .settings-rail a.active {
background: rgba(96,165,250,0.12); color: var(--blue); font-weight: 600; background: rgba(96,165,250,0.12); color: var(--blue); font-weight: 600;
} }
@@ -1548,14 +1555,14 @@ def _render_settings_rail(
active = "active" if c.name == active_container else "" active = "active" if c.name == active_container else ""
enabled_sub = "enabled" if c.enabled else "disabled" enabled_sub = "enabled" if c.enabled else "disabled"
parts.append( parts.append(
f'<a class="{active}" href="/containers/{_escape(c.name)}">' f'<a class="rail-child {active}" href="/containers/{_escape(c.name)}">'
f'<span class="rail-ico" style="color:{_escape(color)};">●</span>' f'<span class="rail-ico" style="color:{_escape(color)};">●</span>'
f'<span class="rail-text">{_escape(c.name)}' f'<span class="rail-text"><span class="rail-name">{_escape(c.name)}</span>'
f'<span class="rail-sub">{enabled_sub} · max {c.max_error_count} err</span>' f'<span class="rail-inline-sub">{enabled_sub}</span>'
f"</span></a>\n" f"</span></a>\n"
) )
parts.append( parts.append(
'<a href="/containers/new" style="color:var(--blue); font-weight:600;">' '<a class="rail-child" href="/containers/new" style="color:var(--blue); font-weight:600;">'
'<span class="rail-ico">+</span>' '<span class="rail-ico">+</span>'
'<span class="rail-text">Add container</span></a>\n' '<span class="rail-text">Add container</span></a>\n'
) )