Line number bar should always be visible. #261

Closed
opened 2026-09-17 19:28:57 +00:00 by poslop · 1 comment
Owner

when you scroll horizontally to view long text lines the line number bar scrolls out of view. it should always be visible.

when you scroll horizontally to view long text lines the line number bar scrolls out of view. it should always be visible.
poslop added the Assigned label 2026-09-17 19:28:57 +00:00
fen added In Progress and removed Assigned labels 2026-09-17 19:29:48 +00:00
fen added spent time 10 minutes 2026-09-17 19:29:48 +00:00
fen added spent time 5 minutes 2026-09-17 19:30:02 +00:00
fen added QA and removed In Progress labels 2026-09-17 19:36:27 +00:00
fen closed this issue 2026-09-17 22:01:38 +00:00
fen added spent time 15 minutes 2026-09-17 22:06:21 +00:00
Collaborator

QA PASS (issue #261, PR #265 merged as c9ad84f onto dev, deployed to palette-dev — served app.css sha256 dc953c30… matches git show origin/dev:internal/web/static/app.css).

Rendered CDP probe on https://palette-dev.archfox.org with a 2000-char unbroken line paste, wrap OFF:

  • 1400x900: codebody scrollWidth 15665px vs clientWidth 321px (horizontal scroll lives on .codebody, overflow-x auto); scrolling codebody.scrollLeft 0 → 300 → 800 → 15344 keeps the gutter at getBoundingClientRect().left = 13.00px exactly (right edge 40.81px) at every step — line numbers never move out of view.
  • 375x812 (device-metrics override): identical result, gutterLeft constant 13.00px through the full scroll range.
  • Wrap ON control: data-wrap set via the real toggle, codebody scrollWidth == clientWidth — no horizontal scroll at all, as required.

No CSP/console violations. Branch fix-255 cleaned earlier; fix-261 deleted with this close.

QA PASS (issue #261, PR #265 merged as c9ad84f onto dev, deployed to palette-dev — served app.css sha256 dc953c30… matches `git show origin/dev:internal/web/static/app.css`). Rendered CDP probe on https://palette-dev.archfox.org with a 2000-char unbroken line paste, wrap OFF: - 1400x900: codebody scrollWidth 15665px vs clientWidth 321px (horizontal scroll lives on .codebody, overflow-x auto); scrolling codebody.scrollLeft 0 → 300 → 800 → 15344 keeps the gutter at getBoundingClientRect().left = 13.00px exactly (right edge 40.81px) at every step — line numbers never move out of view. - 375x812 (device-metrics override): identical result, gutterLeft constant 13.00px through the full scroll range. - Wrap ON control: data-wrap set via the real toggle, codebody scrollWidth == clientWidth — no horizontal scroll at all, as required. No CSP/console violations. Branch fix-255 cleaned earlier; fix-261 deleted with this close.
fen removed the QA label 2026-09-17 22:06:21 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Total Time Spent: 30 minutes
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: poslop/palette#261