Skip to content

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions