Skip to content

Conversation

@femincan
Copy link
Contributor

@femincan femincan commented Oct 19, 2025

The callouts overflows the screen on mobile screens. The main cause of this issue is the long code blocks in callouts. I fix the issue by giving a min-width: 0 property to the content div of the callout. Because that div is a flex item and min-width: auto by default, the min width of the div is the min-content without breaking any text. When we give min-width: 0, the element correctly shrinks and a scroll-bar appears for the code content. Also now the inline code can correctly wraps to the next line.

Before: (The callout content overflows)
image
After: (The overflowling issue is solved with min-width property)
image

@femincan
Copy link
Contributor Author

recheck

@femincan
Copy link
Contributor Author

Can you also review this pull request @filmaj?

@filmaj
Copy link
Contributor

filmaj commented Oct 19, 2025

I'm not a CSS expert so I don't feel confident reviewing this one, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants