Skip to content
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

Content overflow in responsive views #50

Closed
tellyworth opened this issue Feb 18, 2023 · 20 comments · Fixed by WordPress/wporg-parent-2021#84
Closed

Content overflow in responsive views #50

tellyworth opened this issue Feb 18, 2023 · 20 comments · Fixed by WordPress/wporg-parent-2021#84
Labels
[Component] Content Bugs or issues related to the page content [Type] Bug Something isn't working

Comments

@tellyworth
Copy link

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

@tellyworth tellyworth added [Type] Bug Something isn't working [Component] Content Bugs or issues related to the page content labels Feb 18, 2023
@aezazs-multidots
Copy link

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
Copy link

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
Copy link

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

@mdhiteshpatel
Copy link

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
Copy link

mdhiteshpatel commented Mar 20, 2023

#50 (comment)

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

@mdhiteshpatel
Copy link

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
Copy link

#50 (comment)

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
Copy link

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
Copy link

mdhiteshpatel commented Mar 23, 2023

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
Copy link

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
Copy link

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
Copy link

#50 (comment)

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
Copy link

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
Copy link

#50 (comment)

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
Copy link

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
Copy link

#50 (comment)

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
Copy link
Contributor

@estelaris
Copy link
Member

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
Copy link
Contributor

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
Copy link
Collaborator

ryelle commented Apr 12, 2023

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Component] Content Bugs or issues related to the page content [Type] Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants