Issue Summary
When using the Seven theme as the default theme, long unbroken link text in node titles (e.g., a product code or hash string) overflows its container in the Views preview and the front page (/node). This breaks the layout and causes horizontal scroll issues in admin views.
Steps to Reproduce
Set Seven as the default theme.
Create a node with a very long unbroken title
Go to /admin/structure/views/view/frontpage and click Preview.
Visit /node (front page) and observe the layout.
Expected: The layout should remain responsive.
Actual: The long title text/link overflows the container and breaks the layout.
Proposed Solution
Apply the following scoped CSS styles:
In field.css
.field--name-title {
word-break: break-word;
}In node.css
.node__content {
word-wrap: break-word;
}
Screenshots
Before Fix:
/node (front page)

/admin/structure/views/view/frontpage and click Preview.

After Fix:
/node (front page)

/admin/structure/views/view/frontpage and click Preview.

| Comment | File | Size | Author |
|---|---|---|---|
| #18 | 6c6c60263335b2faee6a58408d7ca83516ca5837.png | 21.65 KB | avpaderno |
| #18 | a8ff8ad36592f0dca33816935d3d3313a1414065.png | 12.41 KB | avpaderno |
| #12 | 3197902-after-patch.png | 172.28 KB | Harish1688 |
| #12 | 3197902-before-patch.png | 107.32 KB | Harish1688 |
| #6 | 3197902-after.png | 24.6 KB | abhijith s |
Issue fork seven-3197902
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
gauravvvv commentedI have provided a patch please review if it is working or not. In our core theme Bartik we use word-wrap: break-word; property to overcome this issue, Using the same solution in patch please review.
Comment #3
gauravvvv commentedAdding an after patch screenshot for reference.
Comment #4
gauravvvv commentedComment #5
gauravvvv commentedComment #6
abhijith s commentedApplied patch #4 and its working fine.Adding screenshots below.
Before patch:
After patch:
RTBC +1
Comment #7
jijojoseph_zyxware commentedI have reviewed this patch and working fine for me. RTBC!!!!!!!!
Comment #9
lauriiiDo we have any realistic use cases where this could occur? Changing word-wrap for body is a quite significant change, so if we don't have any realistic use case in mind, I'm leaning towards keeping this as is.
Comment #12
Harish1688 commentedTested the patch (3197902-4.patch) working fine, good for RTBC. but that issue is belong to the long text , not for long text link. it's (patch) mainly useful for small devices where we need to break the word on small size screen.
Comment #13
longwaveThe Seven theme has been removed from Drupal 10 core. I confirmed that this issue only affects Seven and no other themes included with Drupal core, so I am moving this to the contributed Seven project.
Comment #14
avpadernoI agree with @laurii: The style is applied to a too generic selector. It should be applied to a more specific selector.
The screenshots seem to show a link for a node title. If the issue fixed at least that case, that would be more acceptable.
Comment #17
immaculatexavier commentedComment #18
avpadernoThe first screenshot, and other screenshots posted later, show what it seems the frontpage, or a page listing the created nodes. The link shown in those screenshots is the link to the node, which uses the node title as link title.
The issue summary does not say exactly what those screenshots show. I could only verify it still happens on the frontpage, when Seven is set as default theme.
I am not sure we should fix this for a page that is not supposed to use an admin theme, which generally aims to render well only a restricted set of pages. Since this happens in the view settings page for the frontpage view (the view preview part), we could fix this for that page.
Comment #19
immaculatexavier commentedComment #20
avpadernoThe status is also for the issue summary that needs to be updated.
Comment #21
immaculatexavier commentedUpdated Issue Summary. Kindly verify
Comment #22
immaculatexavier commentedComment #23
immaculatexavier commentedComment #24
avpadernoComment #26
avpadernoComment #27
avpadernoComment #29
avpadernoThank you! The changes have been committed.