Skip to content

Make the floating TOC toggle visible in preview mode - #331

Merged
PathGao merged 1 commit into
sftwrdotdev:masterfrom
PathGao:fix/toc-toggle-floating-surface
Aug 2, 2026
Merged

Make the floating TOC toggle visible in preview mode#331
PathGao merged 1 commit into
sftwrdotdev:masterfrom
PathGao:fix/toc-toggle-floating-surface

Conversation

@PathGao

@PathGao PathGao commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • give the floating table-of-contents toggle a subtle translucent rounded surface in preview-only and edit modes
  • keep its 28px geometry, side placement, animation, icon direction, tooltip, accessible label, and behavior unchanged
  • add a regression test that prevents the control from returning to an edit-only card or a transparent bare icon

Why

In preview-only mode the collapsed TOC control was only a bare chevron. It blended into the document canvas and was easy to confuse with nearby toolbar affordances. The new base surface is intentionally quieter than hover/active states while remaining visible through its translucent canvas, border, and shadow.

Validation

  • npm run check (0 errors, 0 warnings)
  • npm test (151 passed)
  • cargo test (27 passed)
  • isolated macOS release bundle: verified the collapsed control in preview-only and edit modes, then opened/closed the TOC without changing the installed app

Fixes #330.

Chain

Depends on #329. Please merge after #329; this is a focused visual follow-up and remains draft until its parent lands.

@PathGao

PathGao commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator Author

@alecdotdev This draft is the next linear follow-up after #329 and fixes #330. It makes the collapsed TOC control subtly visible in preview-only mode without changing its 28px target, placement, animation, icon direction, or behavior. The isolated macOS bundle verified preview-only and edit-mode opening/closing. Please merge after #329.

@PathGao
PathGao force-pushed the fix/toc-toggle-floating-surface branch from 4efb694 to ef2d525 Compare August 2, 2026 04:03
@PathGao
PathGao marked this pull request as ready for review August 2, 2026 06:33
@PathGao
PathGao force-pushed the fix/toc-toggle-floating-surface branch from ef2d525 to 2341e05 Compare August 2, 2026 06:38
@PathGao
PathGao merged commit fda501c into sftwrdotdev:master Aug 2, 2026
5 checks passed
@PathGao
PathGao deleted the fix/toc-toggle-floating-surface branch August 2, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make the floating table-of-contents toggle visible in preview mode

1 participant