hyperhive/frontend/packages/shared/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris adfb0f9e02 shared terminal: align row icons via a shared grid, not offsets
Per mara's screenshot report (agent-terminal icons not aligned in the
first column) — and her explicit follow-up steer on the first version of
this fix: 'dont do it by offsets at all, it should be part of the layout
that they align.'

Root cause traced first, not guessed: .row-glyph relied on inheriting
text-indent: -1.4em from .live .row to paint its glyph in the reserved
prefix slot; details.row > summary separately reset text-indent: 0 for
its own hanging-caret needs, which also zeroed the inherited value for
the icon nested inside it (indent inherits by computed value, not by
rule). Two independently-computed offsets that had to agree by hand,
and silently didn't.

Replaced the whole offset scheme with a real structural fix: every row
is a 2-column CSS grid (icon column, width from one shared
--row-icon-col custom property, then content column), and a details
row grids its own <summary> with the exact same grid-template-columns
value instead of griding itself (so its <pre> body still stacks full
width below, not squeezed into column 2). Icon and content are placed
by explicit grid-column, not auto-placement inference, so an icon-less
row's lone child still lands in the content column. .row-content is a
new wrapper class (Row.tsx, terminal.js's row()/mutableRow()/
placeholder()) giving that content an element the grid can target by
class - a DocumentFragment (what linkify() returns) doesn't persist as
a node once appended, so without an explicit wrapper there was nothing
for the grid to place.

Caught and fixed a second real bug while building this for real (not
just reasoning about the CSS): the first draft's details.row { display:
block } had lower specificity than .live .row's display: grid and never
actually applied, squeezing <summary> into the row's own 1.4em icon
column and wrapping its text one character per line. Needed
.live details.row to out-specify it.

Verified with a headless-chromium render of all 6 row shapes (flat
icon / flat icon-less / flat markdown-body / details icon / details
icon-less / a long-wrapping flat row) - all align and wrap correctly.
Also verified via the earlier Range.getBoundingClientRect() measurement
(glyph paint position, not just the element's own box): diff 0.00 for
both this and the previous fix, but only this one is structural rather
than two numbers that happen to still agree today.
2026-09-09 23:35:20 +02:00
..
api-error-panel treefmt: apply prettier 2026-09-02 15:25:07 +02:00
badge shared Badge: disabled without onClick now renders a real disabled button 2026-09-08 14:00:07 +02:00
dropdown swarm-ui: one badge+dropdown for wanted state, not multiple buttons 2026-09-07 22:31:44 +02:00
hive-btn treefmt: apply prettier 2026-09-02 15:25:07 +02:00
hive-dialog treefmt: apply prettier 2026-09-02 15:25:07 +02:00
hive-menu treefmt: apply prettier 2026-09-02 15:25:07 +02:00
hive-toast treefmt: apply prettier 2026-09-02 15:25:07 +02:00
hive-warn treefmt: apply prettier 2026-09-02 15:25:07 +02:00
jobq-graph treefmt: apply prettier 2026-09-02 15:25:07 +02:00
jobq-rollup treefmt: apply prettier 2026-09-02 15:25:07 +02:00
settings treefmt: apply prettier 2026-09-02 15:25:07 +02:00
side-panel docs: retire the stray top-level web-ui.md, fold it into web-ui/README.md 2026-09-07 15:49:52 +02:00
tabs treefmt: apply prettier 2026-09-02 15:25:07 +02:00
terminal shared terminal: align row icons via a shared grid, not offsets 2026-09-09 23:35:20 +02:00
warn-banner treefmt: apply prettier 2026-09-02 15:25:07 +02:00
api-error.ts treefmt: apply prettier 2026-09-02 15:25:07 +02:00
base.css treefmt: apply prettier 2026-09-02 15:25:07 +02:00
chrome.css treefmt: apply prettier 2026-09-02 15:25:07 +02:00
colors.css treefmt: apply prettier 2026-09-02 15:25:07 +02:00
dom.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00
forms.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00
icons.tsx swarm-ui: table filters move to a per-header icon + popover 2026-09-08 12:14:56 +02:00
index.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00
modal.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00
pill.css frontend: unify pill/chip/badge shape into shared CSS 2026-08-12 19:25:45 +02:00
prefs.ts agent term: add a setting to hide debug-level output 2026-09-02 20:40:22 +02:00
shadow-css.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00
theme.css treefmt: apply prettier 2026-09-02 15:25:07 +02:00