when switching the post editor to preview mode, the gallery button is still there #49

Closed
opened 2026-07-20 13:01:12 +00:00 by hugo · 1 comment
Owner

the insert link and insert media buttons vanish when switching to preview, but the gallery button - which is also just inserting stuff to a post - is still there. this is slightly confusing, since a user expects editing tools not be there during preview, probably, so this should behave like the other two buttons.

the insert link and insert media buttons vanish when switching to preview, but the gallery button - which is also just inserting stuff to a post - is still there. this is slightly confusing, since a user expects editing tools not be there during preview, probably, so this should behave like the other two buttons.
hugo added the bug label 2026-07-20 13:01:12 +00:00
Author
Owner

Implemented in e531d32. The Gallery action now uses the same markdown-only toolbar visibility rule as Insert Link and Insert Media, so every editing action disappears in preview mode. Added a focused regression test. Verified with cargo fmt --all -- --check, cargo test --workspace, cargo build --workspace, and a visual check of the packaged macOS app in both modes.

Implemented in e531d32. The Gallery action now uses the same markdown-only toolbar visibility rule as Insert Link and Insert Media, so every editing action disappears in preview mode. Added a focused regression test. Verified with cargo fmt --all -- --check, cargo test --workspace, cargo build --workspace, and a visual check of the packaged macOS app in both modes.
hugo closed this issue 2026-07-20 16:19:36 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: hugo/RuDS#49