Fix #6: larger RTE toolbar buttons + bigger, both-axis-scrolling editor #8
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/rte-editor-sizing"
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?
Closes #6.
Summary
Makes the rich-text editor's toolbar buttons larger and clearer, enlarges the editor body, and lets it scroll both vertically and sideways. The change lives in the shared
.rte*styles, so it applies to every rich-text editor on the site — the wiki editor, the post editor, and any added later.What the issue asked for
Changes (
client/src/styles/theme.css)30px → 38px, base font0.85rem → 1rem; roomier toolbar padding/gap.1.25remso they read clearly.max-height 460px → min(640px, 65vh); ProseMirrormin-height 220px → 320px(bigger overall).overflow-y: auto → overflow: auto, so wide images / code blocks / tables can scroll sideways as well as vertically.Scope
Single shared component → applies to all editors site-wide. No JS, schema, or dependency changes.
Verification
Verified in a live Wiki editor: toolbar buttons render at 38px tall (link & image glyphs at 20px), editor body
max-heightresolves tomin(640px, 65vh)with bothoverflow-xandoverflow-yset toauto, and ProseMirrormin-heightis 320px.Follow-up (not in this PR)
In a headless browser the image button's emoji (🖼) rendered as a missing-glyph box — almost certainly an emoji-font quirk of that environment, but if we want toolbar icons guaranteed-consistent everywhere, replacing the emoji glyphs with inline SVG icons would be a good follow-up.
Appropriate fix