Skip to content

feat(editor): frame the plain editor and reduce side margins#1930

Open
MiMoHo wants to merge 1 commit into
nextcloud:mainfrom
MiMoHo:feat/editor-frame
Open

feat(editor): frame the plain editor and reduce side margins#1930
MiMoHo wants to merge 1 commit into
nextcloud:mainfrom
MiMoHo:feat/editor-frame

Conversation

@MiMoHo

@MiMoHo MiMoHo commented Jul 6, 2026

Copy link
Copy Markdown

Summary

Design proposal for the plain-text editor (EasyMDE): the writing area is currently capped at 47em, left-aligned and floats without any visual boundary, which makes it feel like writing into empty space, with a disproportionately wide unused margin on larger screens.

This change:

  • adds a subtle border around the writing field (--color-border, follows the light and dark theme),
  • lets the field use the available pane width up to 90em (centered), so side margins shrink while line length stays bounded on very wide screens,
  • gives the header zone above the field more breathing room,
  • removes the frame in distraction-free (full screen) mode, where it would get in the way.

Since spacing and sizing are a matter of taste, I would appreciate a design review — screenshots of the result in light and dark mode are attached:

shot-overview shot-chromium-category

Testing

Verified in Chromium and WebKit, light and dark theme; production webpack build clean.


🤖 AI (if applicable)

  • This pull request was prepared with assistance from Claude Code (Claude Fable 5).
    I reviewed and tested the changes myself.

@MiMoHo MiMoHo requested review from enjeck and silverkszlo as code owners July 6, 2026 04:04
The editing area was capped at 47em, left aligned and floated without
any visual boundary. Let it use the available pane width up to 90em,
add a subtle border so the writing field is clearly delimited, and give
the header zone above it more breathing room. The frame is dropped in
distraction free mode.

Assisted-by: Claude Code:claude-fable-5
AI-assistant: Claude Code 2.1.187 (Claude Fable 5)
Signed-off-by: MiMoHo <37556964+MiMoHo@users.noreply.github.com>
@MiMoHo MiMoHo force-pushed the feat/editor-frame branch from e3a38a8 to 40a7de8 Compare July 6, 2026 16:11
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.

1 participant