8000 minor #25138 [TwigBundle] Exception page: prefer overflow-wrap to wor… · symfony/symfony@5c954c7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5c954c7

Browse files
committed
minor #25138 [TwigBundle] Exception page: prefer overflow-wrap to word-break (julienfalque)
This PR was merged into the 3.3 branch. Discussion ---------- [TwigBundle] Exception page: prefer overflow-wrap to 8000 word-break | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes-ish | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - This prevents arbitrary text wrapping, breaks are always made on whitespace when possible: **Before** ![long-before](https://user-images.githubusercontent.com/1736542/33190369-4c23fb88-d0ac-11e7-8c4d-60e60fc06b83.png) **After** ![long-after](https://user-images.githubusercontent.com/1736542/33190370-4e449a4e-d0ac-11e7-90bd-6dacca10e9fd.png) Random breaks inside words can still be made for very long words: **Before** ![very-long-before](https://user-images.githubusercontent.com/1736542/33190387-83a3572a-d0ac-11e7-8d6b-c19b3812c339.png) **After** ![very-long-after](https://user-images.githubusercontent.com/1736542/33190388-84cf6724-d0ac-11e7-9756-bb34a0a64bb8.png) Tested on Chrome 62 (Linux) and Firefox 47 (Linux). Commits ------- c7333b1 Prefer overflow-wrap to word-break
2 parents db979e8 + c7333b1 commit 5c954c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/TwigBundle/Resources/views/exception.css.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ table th { background-color: #E0E0E0; font-weight: bold; text-align: left; }
2222
.hidden { display: none; }
2323
.nowrap { white-space: nowrap; }
2424
.newline { display: block; }
25-
.break-long-words { -ms-word-break: break-all; word-break: break-all; word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; }
25+
.break-long-words { word-wrap: break-word; overflow-wrap: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; min-width: 0; }
2626
.text-small { font-size: 12px !important; }
2727
.text-muted { color: #999; }
2828
.text-bold { font-weight: bold; }

0 commit comments

Comments
 (0)
0