From b07d74b51b18f056f72f55138c3d3a01cc701bca Mon Sep 17 00:00:00 2001 From: iris Date: Sun, 31 May 2026 14:37:43 +0200 Subject: [PATCH] agent.css + docs: migrate icon sizing + popover :not([hidden]) prose (#713 batch 2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit agent.css carried 17 #NNN cookies, mostly attribution refs to the #394 vibec0re overhaul (mara's full-screen redesign). Most were not substantive WHY-prose — just "this exists because of #394" breadcrumbs. The two genuine WHY-explanations move to docs. Moved to docs/web-ui.md::Per-agent page: - **Agent icon paragraph**: rewrote with explicit-em-sizing rationale (intrinsic dimensions push parent flex container open via align-items: stretch height feedback) + the 5em ≈ 6em min-height - 0.5em padding × 2 derivation + align-self: flex-start sticks-to-top. - **Overflow button paragraph**: added the :not([hidden]) display scoping rationale (UA stylesheet sets display:none on [hidden], but author display:flex would override — scope to :not([hidden]) so the popover stays hidden until JS unhides). Collapsed in agent.css: 17 cookies scrubbed across the file: - #360 (full-screen vibec0re overhaul — closed) ×2: section header preface + side-panel section header - #394 (vibec0re header redesign — closed) ×7: header height, main column, agent icon, meta-nav, overflow trigger, two orphaned-style tombstones - #411 (popover scoping + icon align-start — closed) ×2: icon sticks-to-top + overflow popover scoping - #568 (OAuth code mask + reveal — closed) ×1: show/hide toggle - #666 (ask→operator inline-answer slot — closed) ×1: slot styling (substance partly in PR #780 docs section) - #559 (mark all read header row — closed) ×1 - #376 (inbox row layout — closed) ×1: long-message wrap - #375 (tail pill z-index — closed) ×1: collision fix agent.css: 17 → 0 refs (100% reduction, fully migrated). --- docs/web-ui.md | 21 +++-- frontend/packages/agent/src/agent.css | 120 +++++++++++++------------- 2 files changed, 72 insertions(+), 69 deletions(-) diff --git a/docs/web-ui.md b/docs/web-ui.md index 6c88f02a..7a38849a 100644 --- a/docs/web-ui.md +++ b/docs/web-ui.md @@ -807,13 +807,17 @@ Three fixed-position layers frame a full-viewport terminal: **Fixed-overlay header** (`
`): frosted glass — `backdrop-filter: blur` lets scrolled terminal rows show -through. Three flex columns (#394 redesign): +through. Three flex columns: - **Agent icon** (``): fixed-size square - identity anchor (5em, `width: 5em; aspect-ratio: 1; - align-self: flex-start` — capped so a tall state-row doesn't - inflate the icon, #411). Falls back to the dimmed hyperhive mark - on load error. + identity anchor — `width: 5em; height: 5em` with explicit pixel + sizing so the ``'s intrinsic (large) dimensions don't push + the parent flex container open via `align-items: stretch`-driven + height feedback. 5em ≈ header content area (header `min-height: 6em` + minus `2 × 0.5em` padding). `align-self: flex-start` keeps the + icon stuck to the top so a state-row line-wrap doesn't drag it + down with it. Falls back to the dimmed hyperhive mark on load + error. - **Main column** (`.agent-header-main`): two rows. - Row 1 (`.agent-header-title-row`): title (`

`) + meta-nav (`