Refguide on mobile to use screen space optimally #3019
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Refs #3011
The reason which reference guide not using screen space optimally in portrait mode is normally from table and text overflow. This issue is also occur in a bit large window, such as width less than amount 1000px.
Below are the factors and how to resolve it:
header overflow
The header which has long word makes text overflow. e.g., "Sinks.many().unicast().onBackpressureBuffer(args?)".
So, add property
overflow-wrap: break-word.paragraph overflow
The long word in a paragraph makes text overflow.
So, add property
overflow-wrap: break-word.code in a patagraph overflow
To set
white-space: nowrapcauses overflow in narrow window because it blocks to break code text.So, set it only when width >= 1280px.
table overflow (
.tableblock,.admonitionblock,.colist)The table width depends on the table content. The width will be larger than
100%if its content has wide width. So, this cause overflow.Thus, set some properties to not have wide width, to not overflow.
refs:
https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap
https://developer.mozilla.org/en-US/docs/Web/CSS/table-layout
https://developer.mozilla.org/en-US/docs/Web/CSS/white-space
Also, I think it should be desirable to expand content area (and it seems separated #issue)...