when switching the post editor to preview mode, the gallery button is still there #49
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
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.