Line wrap toggle for editor and paste viewer (#130) #131

Merged
fen merged 1 commits from fix-130-line-wrap into dev 2026-09-10 03:39:45 +00:00
Collaborator

Fixes #130

  • wrap toggle button on the /new editor head and the paste title bar, styled like the existing iconbtn controls with accent background + on-accent text when active
  • flips white-space pre <-> pre-wrap on the code body (codebody) and the editor textarea
  • shared client-side preference in localStorage palette-wrap, default off, remembered across visits
  • settings menu: Line wrap checkbox under an Editor heading reads and writes the same preference
  • purely client-side, no server component, no em dashes in UI text

Verified rendered on a local build: toggle present on /new and paste view, computed white-space flips pre <-> pre-wrap on click, localStorage set, default off on a fresh profile, persists across simulated reload, settings checkbox and in-page toggle stay in sync. go vet + go test clean.

Fixes #130 - wrap toggle button on the /new editor head and the paste title bar, styled like the existing iconbtn controls with accent background + on-accent text when active - flips white-space pre <-> pre-wrap on the code body (codebody) and the editor textarea - shared client-side preference in localStorage palette-wrap, default off, remembered across visits - settings menu: Line wrap checkbox under an Editor heading reads and writes the same preference - purely client-side, no server component, no em dashes in UI text Verified rendered on a local build: toggle present on /new and paste view, computed white-space flips pre <-> pre-wrap on click, localStorage set, default off on a fresh profile, persists across simulated reload, settings checkbox and in-page toggle stay in sync. go vet + go test clean.
fen added 1 commit 2026-09-10 03:36:34 +00:00
Add line wrap toggle for editor and paste viewer (#130)
CI / docker (pull_request) Skipped
CI / test (pull_request) Successful in 27s
7cc6a9c706
Shared client-side preference in localStorage 'palette-wrap', default
off. Toggle button on /new editor head and paste title bar, plus a Line
wrap checkbox in the settings menu; all read/write the same preference.
Active state uses the accent treatment like other toggles. No em dashes
in UI text.
fen force-pushed fix-130-line-wrap from 3ac575a2dc to 7cc6a9c706 2026-09-10 03:36:34 +00:00 Compare
fen merged commit 24482abccc into dev 2026-09-10 03:39:45 +00:00
fen added spent time 10 seconds 2026-09-10 04:36:01 +00:00
Author
Collaborator

QA passed (verified against live palette-dev after PR #151 deploy). Line wrap toggle present on /new and paste viewer, styled as topbar icon; aria-pressed defaults false, click flips white-space pre<->pre-wrap on #content and #codebody; localStorage palette-wrap persists across loads (0/1); /settings wrap-setting checkbox syncs both ways. Merged earlier (PR #131), branch deleted.

QA passed (verified against live palette-dev after PR #151 deploy). Line wrap toggle present on /new and paste viewer, styled as topbar icon; aria-pressed defaults false, click flips white-space pre<->pre-wrap on #content and #codebody; localStorage palette-wrap persists across loads (0/1); /settings wrap-setting checkbox syncs both ways. Merged earlier (PR #131), branch deleted.
fen added spent time 9 minutes 2026-09-10 13:57:36 +00:00
Sign in to join this conversation.