#261: keep line number gutter visible during horizontal scroll #265

Merged
fen merged 2 commits from fix-261 into dev 2026-09-17 22:01:38 +00:00
Collaborator

Fixes #261 (Fix attempt 1)

Horizontal scroll on the paste view lived on the .code flex container, so scrolling long lines took the line number gutter out of view. Moved the scroll to the codebody (flex:1 1 auto; min-width:0; overflow-x:auto) with .code itself overflow-x:hidden; the gutter now sits outside the scroll container and stays visible.

Verified locally (CDP probes, wrap OFF + wrap ON, desktop 1400x900 and mobile 375x812): codebody scrollLeft 4534/2817px with the gutter pinned (x unchanged), zero gutter-to-line drift on wrap ON (20 lines, 20 rows), no horizontal scroll with wrap ON. go build and go test pass.

Fixes #261 (Fix attempt 1) Horizontal scroll on the paste view lived on the .code flex container, so scrolling long lines took the line number gutter out of view. Moved the scroll to the codebody (flex:1 1 auto; min-width:0; overflow-x:auto) with .code itself overflow-x:hidden; the gutter now sits outside the scroll container and stays visible. Verified locally (CDP probes, wrap OFF + wrap ON, desktop 1400x900 and mobile 375x812): codebody scrollLeft 4534/2817px with the gutter pinned (x unchanged), zero gutter-to-line drift on wrap ON (20 lines, 20 rows), no horizontal scroll with wrap ON. go build and go test pass.
fen added 1 commit 2026-09-17 19:36:06 +00:00
fen added 1 commit 2026-09-17 22:00:48 +00:00
Merge origin/dev into fix-261 for QA
CI / docker (pull_request) Skipped
CI / test (pull_request) Successful in 23s
25906612f6
fen merged commit c9ad84f523 into dev 2026-09-17 22:01:38 +00:00
Sign in to join this conversation.