WordPress / wporg-documentation-2022

15 stars 6 forks source link

Content overflow in responsive views #50

Closed tellyworth closed 1 year ago

tellyworth commented 1 year ago

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:

  1. Go to the above URLs
  2. Switch to responsive mode, 425 wide
  3. Scroll down to code blocks
  4. 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:

Screen Shot 2023-02-18 at 11 50 22 am
aezazs-multidots commented 1 year ago

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:

CleanShot 2023-02-21 at 18 14 44@2x

Thank you !

ihiteshpatel commented 1 year ago

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 CleanShot 2023-02-28 at 17 45 52@2x

ihiteshpatel commented 1 year ago

To overcome the content overflow issue from the below link: https://github.com/WordPress/wporg-documentation-2022/issues/50#issuecomment-1448087237

Please find the below CSS: .entry-content.wp-block-post-content { Overflow-X: auto; }

mdhiteshpatel commented 1 year ago

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.

Screenshots CleanShot 2023-03-20 at 18 33 14@2x

mdhiteshpatel commented 1 year ago

https://github.com/WordPress/wporg-documentation-2022/issues/50#issuecomment-1476200303

Please find the below CSS to solve the issue mentioned in the above comment: .wp-block-group ul { word-break: break-word; }

mdhiteshpatel commented 1 year ago

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.

Screenshots

CleanShot 2023-03-21 at 14 27 14@2x
mdhiteshpatel commented 1 year ago

https://github.com/WordPress/wporg-documentation-2022/issues/50#issuecomment-1477712834

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; }

mdhiteshpatel commented 1 year ago

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.

Screenshots

CleanShot 2023-03-23 at 17 50 06@2x
mdhiteshpatel commented 1 year ago

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.

Screenshots CleanShot 2023-03-23 at 17 50 06@2x

To solve the above design break issue, please find the below CSS: .wp-block-post-content ol li {word-break: break-word; }

mdhiteshpatel commented 1 year ago

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.

Screenshots

CleanShot 2023-03-27 at 12 13 10@2x
mdhiteshpatel commented 1 year ago

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.

Screenshots

CleanShot 2023-03-27 at 12 21 36@2x
mdhiteshpatel commented 1 year ago

https://github.com/WordPress/wporg-documentation-2022/issues/50#issuecomment-1489743969

To solve the content overflow issue in the above issue, please find the below CSS:

.wp-block-post-content p {word-break: break-word; }

mdhiteshpatel commented 1 year ago

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.

Screenshots

CleanShot 2023-03-27 at 12 26 39@2x
mdhiteshpatel commented 1 year ago

https://github.com/WordPress/wporg-documentation-2022/issues/50#issuecomment-1491345516

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; }

ihiteshpatel commented 1 year ago

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.

CleanShot 2023-03-27 at 12 26 39@2x
ihiteshpatel commented 1 year ago

https://github.com/WordPress/wporg-documentation-2022/issues/50#issuecomment-1498665487

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; }

StevenDufresne commented 1 year ago

https://wordpress.org/documentation/article/how-to-install-wordpress/

Screenshot

Screenshot 2023-04-11 at 1 05 49 PM
estelaris commented 1 year ago

https://wordpress.org/documentation/article/how-to-install-wordpress/

Screenshot

Screenshot 2023-04-11 at 1 05 49 PM

This article was moved to DevHub and it has no problems there.

StevenDufresne commented 1 year ago

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.

ryelle commented 1 year ago

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 https://github.com/WordPress/wporg-documentation-2022/issues/59 & https://github.com/WordPress/wporg-documentation-2022/pull/60).