Hey everyone. I would like to start a discussion on the default alignment of content in Cristal. Basically, we have two options right now.
Note: these two probably will be a user option in the future, but we will need a default still.
- Centering the content by limiting its width, with the sidebar pushed to the left. This is the default on apps like Notion, Outline, Loop, etc.
- Let the content always take 100% off the viewport width. This is the default on XWiki now.
Screenshots of the two methods. Both screenshots were taken on a big screen to better exemplify the concepts.
Centered Content
Full width content
Note that on smaller viewports (not necessarily physical screens) the content will limit itself to the available space, so in these situations both options produce the same results. Example below.
Example on Mobile:
Now, on to the pros and cons of each method:
1. Centered content
- Pros
- Line length gets smaller, so it’s easier for the reader to jump between lines. Here’s a nice article explaining this effect in details Size Matters: Balancing Line Length And Font Size In Responsive Web Design — Smashing Magazine
- While the lines are shortened, the content still sits in the center of the screen so the visual balance (left and right) is maintained.
- The sidebar still is on the expected place at the left most section of the viewport.
- Cons
- It’s different from the default of XWiki standard.
- Large monitors can feel empty and underutilized.
- The gap between sidebar and content can be very large, especially on ultrawide resolutions.
2. Full width content
-
Pros
- All available space is used, regardless of line length.
- Space between the sidebar and content is consistent
- Retains the historic default of XWiki
-
Cons
- It can be very hard to follow a long text when jumping between lines
- It’s different from established apps on the market. Users coming from other platforms to experiment with Cristal might feel at odds with the default choice.
So here are my questions:
- What option you feel should be the default on Cristal?
- Would you prefer it as a user option in real time, (on the page menu for example) and only for the current page. Or a general preference that would apply to all pages on the Wiki?
- Do you have any other comments or options that should be considered?
Thank you all for reading!
Edit: Filled the bigger screenshots with lorem ipsum text to better show the effects being discussed.