-
Notifications
You must be signed in to change notification settings - Fork 3
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
Horizontal overflow on mobile (<code>
inside a notice box)
#63
Comments
This was also just reported in meta#7726 (which I've closed as a duplicate of this). It pertains to a post that (as of this moment) exhibits the behavior. Note that I am able to reproduce the |
As |
Hey @coffee2code, thanks for looking into this. Not sure what's the magic that Firefox does (nothing in the default stylesheet), but this can also be solved in the grid level (which might be better?): Replace BTW, there's a strange inline style on the parent notice box that messes up the formatting: |
Hi there,
In my recent article, there's a notice box that includes a URL. Since this is a sample URL pattern (not an active link), I initially wrapped it in an inline code element. Unfortunately, this causes a horizontal overflow on mobile:
This bug can be solved in a few ways, for example, by adding
word-break: break-word;
to either thewp-block-wporg-notice
class or to the<code>
element inside thewp-block-wporg-notice__content
class.For now, I removed the wrapping
<code>
element, but it would be great to be able to mark this piece of text somehow and make it stand out from the explanation that precedes it.The text was updated successfully, but these errors were encountered: