Icon topbar, module title-bar controls, hideable title bars, renames

Topbar: the add button is now just + and the layout button a 3-segment
grid icon (two squares + one tall rectangle). Modules no longer build
their own toolbars — moduleApi.header.addButton/addMenu put controls in
the tile's title bar next to the gear/close (menus are fixed-positioned
by the shell so a tile's overflow can't clip them, and everything a
module adds is removed automatically on unmount). Each title bar grows a
notch on its bottom edge that hides/shows the bar, ProdCom-Listener
style; the choice persists with the layout. Modules renamed: ProdCom and
ProPresenter. The ProdCom tile regains the original listener tools as
icon buttons in its title bar: timestamps toggle (clock), A−/A+ text
size, jump-to-latest, and a circle-with-cross clear button, plus the
Channels menu. MODULE-GUIDE documents the header API; README updated.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RNYUv9EyrGSFmCnmH7WYKH
This commit is contained in:
Claude
2026-08-30 16:39:22 +00:00
parent af46499d92
commit 54338ddf16
9 changed files with 330 additions and 97 deletions
+80 -2
View File
@@ -71,6 +71,14 @@ button { font-family: inherit; }
}
.tb-btn:hover { border-color: var(--muted); }
.tb-btn:active { background: var(--border); }
.tb-btn.icon {
padding: 6px 8px;
min-width: 30px;
justify-content: center;
font-size: 14px;
line-height: 1;
}
.tb-btn.icon svg { display: block; }
/* ── dropdown menus ────────────────────────────────────────────────── */
@@ -191,7 +199,8 @@ button { font-family: inherit; }
display: flex;
align-items: center;
gap: 8px;
padding: 5px 8px;
height: 32px; /* fixed so the notch below can sit at a known offset */
padding: 0 8px;
background: rgba(255, 255, 255, 0.03);
border-bottom: 1px solid var(--border);
cursor: grab;
@@ -200,6 +209,7 @@ button { font-family: inherit; }
touch-action: none;
}
.tile.dragging .tile-head { cursor: grabbing; }
.tile.head-hidden .tile-head { display: none; }
.tile-head .dot {
flex: none;
@@ -241,8 +251,76 @@ button { font-family: inherit; }
}
.tile-btn:hover { background: var(--border); color: var(--text); }
.tile-btn.close:hover { color: var(--danger); }
.tile-btn.active { color: var(--accent); }
.tile-btn svg { width: 13px; height: 13px; display: block; }
/* controls a module adds to its own title bar (moduleApi.header) */
.tile-controls {
display: flex;
align-items: center;
gap: 2px;
min-width: 0;
overflow: hidden;
}
.tile-btn.module-btn {
width: auto;
min-width: 22px;
padding: 0 5px;
font-size: 11px;
font-weight: 600;
white-space: nowrap;
}
.tile-dd { position: relative; display: inline-flex; }
/* a module header menu — fixed-positioned by the shell so the tile's
overflow:hidden can't clip it */
.tile-menu {
position: fixed;
z-index: 70;
min-width: 180px;
max-height: 60vh;
overflow-y: auto;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 10px;
padding: 5px;
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}
.tile-menu[hidden] { display: none; }
/* notch on the title bar's bottom edge: click to hide/show the bar
(same idea as the ProdCom Listener's pull-down menubar handle) */
.tile-notch {
position: absolute;
top: 32px;
left: 50%;
transform: translateX(-50%);
width: 46px;
height: 13px;
padding: 0;
background: var(--panel);
border: 1px solid var(--border);
border-top: none;
border-radius: 0 0 10px 10px;
cursor: pointer;
z-index: 6;
opacity: 0;
transition: opacity 0.15s ease, top 0.15s ease;
}
.tile:hover .tile-notch { opacity: 0.6; }
.tile .tile-notch:hover { opacity: 1; }
.tile.head-hidden .tile-notch { top: 0; }
.tile-notch::after {
content: "";
display: block;
width: 18px;
height: 3px;
margin: 4px auto 0;
border-radius: 999px;
background: var(--muted);
}
.tile-notch:hover::after { background: var(--text); }
.tile-body {
flex: 1;
position: relative;
@@ -331,7 +409,7 @@ button { font-family: inherit; }
.tile-settings {
position: absolute;
top: 30px;
top: 36px;
right: 6px;
z-index: 45;
min-width: 220px;