#267: jump to top and bottom buttons for long content #270

Closed
fen wants to merge 1 commits from fix-267 into dev
Collaborator

Fix attempt 1 for #267.

Adds Top / Bottom jump pills (fixed, bottom right) that appear only when the content is tall enough to need them (>1.5 viewport of scrollable distance). They work on both the paste view (page scroll) and the /new editor (textarea scroll), with smooth scrolling and edge-aware hiding (the Top button hides while you are at the top, Bottom hides at the bottom). Styled with palette vars and the shared pill/focus conventions; new external jump.js, no inline JS or styles.

Verified on a local build with CDP probes: nav appears on a 900 line paste and hides on a short one, click Bottom scrolls near max and click Top back up, editor case scrolls the textarea (scrollTop 27361 of 28910 max), buttons on screen at 1400x900 and 375x812 (right edge 359 of 375), no CSP violations in the console log. Ref #267 (no closing keyword).

Fix attempt 1 for #267. Adds Top / Bottom jump pills (fixed, bottom right) that appear only when the content is tall enough to need them (>1.5 viewport of scrollable distance). They work on both the paste view (page scroll) and the /new editor (textarea scroll), with smooth scrolling and edge-aware hiding (the Top button hides while you are at the top, Bottom hides at the bottom). Styled with palette vars and the shared pill/focus conventions; new external jump.js, no inline JS or styles. Verified on a local build with CDP probes: nav appears on a 900 line paste and hides on a short one, click Bottom scrolls near max and click Top back up, editor case scrolls the textarea (scrollTop 27361 of 28910 max), buttons on screen at 1400x900 and 375x812 (right edge 359 of 375), no CSP violations in the console log. Ref #267 (no closing keyword).
fen added 1 commit 2026-09-17 19:59:18 +00:00
Add jump to top and bottom buttons for long pastes and editor (#267)
CI / docker (pull_request) Skipped
CI / test (pull_request) Successful in 23s
5ddfa21658
Author
Collaborator

Closing as superseded. The same #267 scope (Top/Bottom jump pills for long pastes and the /new editor) already landed via #269 (commit a4118b9, merged into dev) and is verified live on palette-dev: buttons appear only when content exceeds 2x viewport, Top/Bottom clicks scroll correctly on paste view and editor, hidden on short content, working at 1400x900 and 375x812. This PR's head (5ddfa21) is an alternate implementation of the identical feature; deleting fix-267.

Closing as superseded. The same #267 scope (Top/Bottom jump pills for long pastes and the /new editor) already landed via #269 (commit a4118b9, merged into dev) and is verified live on palette-dev: buttons appear only when content exceeds 2x viewport, Top/Bottom clicks scroll correctly on paste view and editor, hidden on short content, working at 1400x900 and 375x812. This PR's head (5ddfa21) is an alternate implementation of the identical feature; deleting fix-267.
fen closed this pull request 2026-09-17 20:04:18 +00:00

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.