Repository navigation
Description
Problem
The message column and the composer are both capped at --maka-chat-measure (680px) and both centre themselves, but they do not land on the same centre line. The message column sits 6px to the right of the composer.
This is not new and not introduced by any recent PR — it reproduces on current main. It is visible on every conversation, and because the empty-state hero was aligned to the message column in #1433, the empty state inherits the same 6px.
Measurement
Storybook → Product/Shell Child Composition → DefaultLayout, viewport 1440x900, values from getBoundingClientRect():
| element | left | right | width | content centre |
|---|---|---|---|---|
.maka-panel-detail |
288 | 1412 | 1124 | 850 |
.maka-chat (scroll-area host) |
288 | 1412 | 1124 | 850 |
.maka-chatViewport |
300 | 1412 | 1112 | 856 |
.maka-chatContent |
300 | 1412 | 1112 | 856 |
.composer |
312 | 1388 | 1076 | 850 |
.maka-message-row |
516 | 1196 | 680 | 856 |
| composer card | 510 | 1190 | 680 | 850 |
.composer is inset symmetrically from the detail pane (288+24 / 1412-24), so its content centre stays at 850. .maka-chatViewport is inset 12px on the left only and flush on the right, which moves the whole message column's centre to 856. Half of that 12px asymmetry is the 6px offset.
What it is not
- Not
--maka-chat-measure: both columns resolve to 680px. - Not padding or margin on the viewport: computed
margin-left,margin-right,padding-left,padding-rightare all0px. - Not
scrollbar-gutter(auto) or an RTL direction flip (bothltr).
The viewport's inline style from OverlayScrollbars reads left: 0px; width: calc(100% + 0px); margin-left: 0px, which claims parity with the host — so the 12px comes from somewhere else in the scroll-area composition. Root cause is not yet located; that is the first task here.
Repro
// against any story with an active conversation
const box = (sel) => { const r = document.querySelector(sel).getBoundingClientRect(); return Math.round(r.left + r.width / 2); };
box('.maka-message-row'); // 856
box('.composer'); // 850 (content centre)Why it matters
The composer is the surface users type into and the message column is what they read; a 6px disagreement between the two centre lines is small per-element but reads as a subtly untidy column on a surface that is otherwise strictly measured. Everything else that derives from --maka-chat-measure (plan mode, the permission dialog, .maka-onboarding) presumably picks a side of this split too and should be checked once the cause is known.
Found while verifying hero geometry for #1433.
Activity
feat(ui): rebuild the empty chat hero around the Maka wordmark
Astro-Han commentedon Jul 25, 2026
Re-measured against the live app, because the table above came from a Storybook story and that is not a sound basis for a layout claim — the
ComposedShellstory owns its own scaffold. (I hit exactly that trap elsewhere in #1433 and had to retract two findings, so this issue deserved the same check.)The finding survives. Built Electron app,
long-transcriptfixture, 1440x900,getBoundingClientRect():.maka-panel-detail.maka-chat(scroll-area host).maka-chatViewport.maka-chatContent.composer.maka-message-rowThe absolute numbers differ from the Storybook table (different pane width), but the structure is identical: the viewport is inset 12px on the left and flush on the right against its own host, and half of that asymmetry is the 6px. Computed
margin-*andpadding-*on.maka-chatViewportare still all0pxin the live app, so the "What it is not" section stands unchanged and the root cause remains unlocated.Confirmed as a real, live-app defect rather than a story artifact.
feat(ui): rebuild the empty chat hero around the Maka wordmark
feat(ui): rebuild the empty chat hero around the Maka wordmark (#1470)
Astro-Han commentedon Jul 25, 2026
I’m working on this. I’ll correct the chat-specific spacing ownership between the OverlayScrollbars host and content, add live Electron geometry coverage for host/viewport parity and message/composer centering, and verify that turn spacing remains intact without changing global scroll surfaces.