[wp-trac] [WordPress Trac] #59746: Adding User Biographical Info without space breaks the container and adds horizontal scroll
WordPress Trac
noreply at wordpress.org
Tue Aug 12 11:27:51 UTC 2025
#59746: Adding User Biographical Info without space breaks the container and adds
horizontal scroll
-------------------------------------+------------------------------
Reporter: mihirdev21 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 6.3.2
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: ui
-------------------------------------+------------------------------
Changes (by zluck):
* keywords: needs-patch reporter-feedback => has-patch needs-testing
Comment:
This patch adds a targeted CSS rule for ''.wp-block-post-author-
biography'' in Twenty Twenty-Five to prevent overflow when the author bio
contains a long unbroken string.
**Changes**
• Added ''assets/css/author-bio-wrap.css'' with ''overflow-wrap:
anywhere'' and ''word-break: break-word'' rules.
• Enqueued it specifically for the core/post-author-biography block using
''wp_enqueue_block_style'' in functions.php, with both src and path for
performance inlining.
**Testing**
• Reproduced on a fresh WP 6.8.1 and trunk install with Twenty Twenty-Five
active.
• Steps: Add a long (300+ char) string without spaces in the Biographical
Info field, view on a single post with Post Author Biography block.
• Before: Biography text overflows horizontally, breaking layout.
• After: Text wraps inside the container, no horizontal scroll.
Tested in Chrome 138, Firefox 128, and Edge 127 on Windows 11, plus Chrome
138 on macOS 14.
**Attachments**
• Before and after screenshots.
• Patch file 59746.diff.
Ready for testing and feedback.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59746#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list