Content overflow in responsive views
Closed this issue · 20 comments
Describe the bug
Some code blocks overflow their container on mobile. Examples from https://meta.trac.wordpress.org/ticket/6780:
https://wordpress.org/documentation/article/tools-erase-personal-data-screen/
https://wordpress.org/documentation/article/tools-export-personal-data-screen/
https://wordpress.org/documentation/article/tools-network-screen/
https://wordpress.org/documentation/article/video-shortcode/
(reported by patelhitesh on meta trac)
To Reproduce
Steps to reproduce the behavior:
- Go to the above URLs
- Switch to responsive mode, 425 wide
- Scroll down to code blocks
- See something like the screenshot
Expected behavior
It should either wrap or scroll, whatever is more generally accessible.
Screenshots
I couldn't reproduce all of those, but here's an example from tools-network-screen in Firefox 109:
Hello @tellyworth
Thank you for creating this issue.
We can fix this issue by adding the below CSS.
.entry-content .wp-block-preformatted { word-break: break-word; }
After adding this CSS, the design of this page will look like this:
Thank you !
Describe the bug
Please check the below URL:
https://wordpress.org/documentation/article/what-are-smilies/
To Reproduce
Steps to reproduce the behavior:
Go to the above URL
Switch to responsive mode, 425 wide
Scroll down to code blocks
Table content is overflow out of the container
To overcome the content overflow issue from the below link:
#50 (comment)
Please find the below CSS:
.entry-content.wp-block-post-content {
Overflow-X: auto;
}
Describe the bug
Some code blocks overflow their container on mobile.
https://wordpress.org/documentation/article/wordpress-glossary/
To Reproduce
Steps to reproduce the behavior:
Go to the above URLs
Switch to responsive mode, 425 wide
Scroll down to code blocks
See something like the screenshot
Expected behavior
It should either wrap or scroll, whatever is more generally accessible.
Please find the below CSS to solve the issue mentioned in the above comment:
.wp-block-group ul { word-break: break-word; }
Describe the bug
Some code blocks overflow their container on mobile.
https://wordpress.org/documentation/article/faq-work-with-wordpress/
To Reproduce
Steps to reproduce the behavior:
Go to the above URLs
Switch to responsive mode, 425 wide
Scroll down to code blocks
See something like the screenshot
Expected behavior
It should either wrap or scroll, whatever is more generally accessible.
Please find the below CSS to solve the content formatting issue mentioned in the above comment.
.entry-content.wp-block-post-content pre { word-break: break-word; }
Describe the bug
Some code blocks overflow their container on mobile.
https://wordpress.org/documentation/article/wordpress-privacy/
To Reproduce
Steps to reproduce the behavior:
Go to the above URLs
Switch to responsive mode, 425 wide
Scroll down to code blocks
See something like the screenshot
Expected behavior
It should either wrap or scroll, whatever is more generally accessible.
Describe the bug Some code blocks overflow their container on mobile.
https://wordpress.org/documentation/article/wordpress-privacy/
To Reproduce Steps to reproduce the behavior:
Go to the above URLs Switch to responsive mode, 425 wide Scroll down to code blocks See something like the screenshot Expected behavior It should either wrap or scroll, whatever is more generally accessible.
To solve the above design break issue, please find the below CSS:
.wp-block-post-content ol li {word-break: break-word; }
Describe the bug
Some code blocks overflow their container on mobile.
https://wordpress.org/documentation/article/twenty-nineteen/
To Reproduce
Steps to reproduce the behavior:
Go to the above URLs
Switch to responsive mode, 425 wide
Scroll down to code blocks
See something like the screenshot
Expected behavior
It should either wrap or scroll, whatever is more generally accessible.
Describe the bug
Some code blocks overflow their container on mobile.
https://wordpress.org/documentation/article/twenty-twenty/
To Reproduce
Steps to reproduce the behavior:
Go to the above URLs
Switch to responsive mode, 425 wide
Scroll down to code blocks
See something like the screenshot
Expected behavior
It should either wrap or scroll, whatever is more generally accessible.
To solve the content overflow issue in the above issue, please find the below CSS:
.wp-block-post-content p {word-break: break-word; }
Describe the bug
Some code blocks overflow their container on mobile.
https://wordpress.org/documentation/article/twenty-twenty-changelog/
To Reproduce
Steps to reproduce the behavior:
Go to the above URLs
Switch to responsive mode, 425 wide
Scroll down to code blocks
See something like the screenshot
Expected behavior
It should either wrap or scroll, whatever is more generally accessible.
To solve the content overflow issue in the above issue, please find the below CSS:
.wp-block-post-content ul li {word-break: break-word; }
Describe the bug
Some code blocks overflow their container on mobile.
https://wordpress.org/documentation/article/twenty-twenty-one-changelog/
To Reproduce
Steps to reproduce the behavior:
Go to the above URLs
Switch to responsive mode, 425 wide
Scroll down to code blocks
See something like the screenshot
Expected behavior
It should either wrap or scroll, whatever is more generally accessible.
To solve the content overflow issue in the above issue, please find the below CSS:
.wp-block-post-content ul li {word-break: break-word; }
https://wordpress.org/documentation/article/how-to-install-wordpress/
Screenshot
This article was moved to DevHub and it has no problems there.
This article was moved to DevHub and it has no problems there.
I'm not sure I understand. When I visit that link I clearly see the problem.
I'm not sure I understand. When I visit that link I clearly see the problem.
That page has been unpublished, if you visit it logged out, it's a 404. We need to update the link on the Download page to https://developer.wordpress.org/advanced-administration/before-install/howto-install/ (this will also be fixed once those redirects are in place, see #59 & #60).