Skip to content

bug(desktop): prompt anchor rail overlaps user messages at narrow widths #5615

Closed

Description

@me2seeks

What happened

At narrow Desktop window widths the prompt anchor rail (maka-prompt-rail) visually covers the right edge of user-sent message bubbles instead of sitting clear of the transcript.

The rail is absolutely positioned over the chat scrollport (right: 12px, pointer-events: auto, z-index: var(--z-panel-action) in apps/desktop/src/renderer/styles/prompt-rail.css), while the transcript turn is full-width and centered (apps/desktop/src/renderer/maka-tokens.css: .maka-turn { max-width: var(--maka-reading-measure); margin: 0 auto; width: 100%; }) inside .maka-chatContent { padding-inline: var(--maka-transcript-gutter); } where the gutter collapses to 12px (clamp(var(--space-3), 4vw, var(--space-10))). Once the window is narrow enough that the reading column fills the scrollport, the ~22px-wide rail plus its 12px offset occupies the same ~34px the user bubble's right edge lives in, so ticks paint on top of the bubble and intercept its hit region.

There is no narrow-width escape hatch: packages/ui/src/prompt-anchor-rail.tsx only returns null when there are fewer than 3 ticks (if (railTurns.length < 3 || !host) return null;), and neither prompt-rail.css nor the rail component has a container/media query that hides the rail or reserves clearance at small widths.

Expected behavior: at widths where the rail cannot sit clear of the reading column, it should get out of the way — e.g. hide it below a scrollport/container threshold (the quote companion already hides its rail outright in workbar/side-chat.css), or reserve matching right clearance for the transcript — so user messages are never painted under navigation chrome.

How to reproduce

  1. Open Maka Desktop with a Session that has >= 3 user prompts (rail renders).
  2. Shrink the window width until the transcript turn spans the full scrollport (reading measure 800px no longer centers with side space).
  3. Look at the right edge of any user bubble: rail ticks overlay the bubble's right edge; hovering/clicking there hits the tick, not the message.

Environment

  • Maka commit: 54135dce5 (origin/main, 2026-09-23; verified via git fetch; local HEAD d5bc0fad3 is one commit behind, diff on the rail path is perf-only perf(desktop): stop idle and streaming render work #5608 with no geometry change)
  • OS and version: platform-independent renderer constraint (reported on Windows; same CSS on macOS/Linux)
  • Surface: Desktop
  • Node.js version, if running from source: not applicable (pure renderer layout)

Logs, screenshots, or additional context

Activity

  1. added
    bug
    on Sep 23, 2026
  2. Totoro-qaq commented on Sep 23, 2026

    @Totoro-qaq
    Contributor

    take

  3. Totoro-qaq commented on Sep 23, 2026

    @Totoro-qaq
    Contributor

    While fixing this I found the overlap is larger in the default layout. When the Workbar edge toggle is shown (togglePosition: 'edge'), workbar/shell.css moves the rail to right: 48px, so it takes 82px from the scrollport's edge, while the space right of a filled column is at most 56px (4vw + 16px). In Storybook that covers user bubbles by 24–26px whenever the chat is narrower than about 964px: with the Workbar open at every width I tried (1024–1600px), or 1024–1180px windows with it collapsed.

    Before I rework #5630 (its viewport breakpoint only covers the 12px case, and it also hides WorkHub's rail), which direction would you prefer: hiding the rail when it can't sit clear, reserving room on the right of the transcript while the rail is shown, or arranging the rail and the edge toggle so they don't compete?

  4. added a commit that references this issue on Sep 28, 2026
    71bc045
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions