-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try: Wider vanilla column width. #26357
Conversation
You are SO FAST Ari! 😂 (That's my way of saying thank you: I really appreciate it.) It's a really small PR as you can see, so I'm happy to merge. @kjellr can you give me a sanity check as well? The 580px value has been there for quite a while now, could this change break anything for themes that might rely on that value? Such as themes that perhaps don't provide their own value here? |
Size Change: +8 B (0%) Total Size: 1.21 MB
ℹ️ View Unchanged
|
0a191e9
to
2537933
Compare
Just judging be the screenshot: It looks like the line length becomes quite long when it's switched to 840px. The general "rule" about line length is that it should be between 45-75 characters per line. I'm only eyeballing the screenshot, but it looks closer to 110+ characters. I think widening it is probably fine theme-wise, but maybe not that wide? Can you point me to an example of the criticism the current content width has received? I'm curious what the preference and point of reference might be (are they comparing it to Microsoft Word for example?). |
2537933
to
e60337c
Compare
Two instincts drive me to make that default column a bit wider than perhaps common practices like the one you mention, suggest:
I could swear there were a bunch in the forums, especially in the early days when few themes styled the editor. Because of the age, it's pretty hard to dig them up, but I found a few:
Also feedback from this one person who used the editor in daily work to debug code:
That last bit about code blocks could/should be vastly improved by #25973 landing, but all of this is why I decided to go slightly wider, to hopefully find the goldilocks balance between both reading and writing. If we try this, I'd be happy to follow up with a reduction PR if it causes trouble? |
Also worth noting, a lot of themes change the root font-size so the default 580px is too narrow when using a 20+ font-size. |
That's an interesting though, Ari. I might follow up with a "try" PR that does that. And/or changes the font and font size. To the extent that the vanilla styles are no longer meant to represent the Gutenberg experience, but is rather a fallback for when the theme doesn't override it, I think there's some low-hanging fruit we can pick to improve that experience. |
fca6957
to
98ed6f7
Compare
8e54111
to
5e21d1b
Compare
5e21d1b
to
49e2dc1
Compare
One commont point of frustration that's been voiced with the block editor, is the thin main column of text to write in. This one:
When the initial width was decided upon, it was chosen for readability and to emphasize wide and full-wide images. But most modern themes today, provide an editor style that customizes this default width, and if by updating the vanilla styles we can improve the writing experience for older themes, that seems like a good small win. This PR changes that width to 840px, which still allows for visible wide and fullwide images:
I'd love to do more with the default style, such as improve the font. But starting with the main column width feels like a good first step.