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
+3 -43
View File
@@ -9,49 +9,9 @@
flex-direction: column;
}
/* ── toolbar ── */
[data-module="prodcom-transcript"] .pt-bar {
flex: none;
display: flex;
align-items: center;
gap: 6px;
padding: 5px 8px;
border-bottom: 1px solid var(--border);
}
[data-module="prodcom-transcript"] .pt-spacer { flex: 1; }
[data-module="prodcom-transcript"] .pt-btn {
background: var(--bg);
color: var(--text);
border: 1px solid var(--border);
border-radius: 6px;
padding: 3px 8px;
font-size: 11px;
font-family: inherit;
cursor: pointer;
white-space: nowrap;
}
[data-module="prodcom-transcript"] .pt-btn:hover { border-color: var(--muted); }
[data-module="prodcom-transcript"] .pt-dd { position: relative; }
[data-module="prodcom-transcript"] .pt-menu {
position: absolute;
top: calc(100% + 5px);
left: 0;
z-index: 30;
min-width: 170px;
max-height: 45vh;
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);
}
[data-module="prodcom-transcript"] .pt-menu[hidden] { display: none; }
/* ── channels menu ──
The menu container is created and positioned by the shell (.tile-menu);
it lives inside the tile, so [data-module] scoping still applies. */
[data-module="prodcom-transcript"] .pt-channel-item {
display: flex;