10000 minor #52511 [ErrorHandler] Do not use hyphens in exception message (… · symfony/symfony@8e06742 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8e06742

Browse files
committed
minor #52511 [ErrorHandler] Do not use hyphens in exception message (jkrzefski, javiereguiluz)
This PR was merged into the 7.1 branch. Discussion ---------- [ErrorHandler] Do not use hyphens in exception message | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT This is just a minor cosmetic change in the error handler. Currently, error messages are shown with hyphenation if they exceed the available with. But in technical texts like exception messages, a hyphen could give the message a slightly different meaning. To reduce the risk for confusion, I removed the hyphenation. Commits ------- e467027 Update the hyphenate character 234c3c4 Do not use hyphens in exception message
2 parents d1f3ee8 + e467027 commit 8e06742

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ div.table-with-search-field .no-results-message {
664664
-webkit-hyphens: auto;
665665
-moz-hyphens: auto;
666666
hyphens: auto;
667+
hyphenate-character: '';
667668
}
668669
.text-small {
669670
font-size: 12px !important;

src/Symfony/Component/ErrorHandler/Resources/assets/css/exception.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ table th { background-color: var(--base-2); font-weight: bold; text-align: left;
132132
.prewrap { white-space: pre-wrap; }
133133
.nowrap { white-space: nowrap; }
134134
.newline { display: block; }
135-
.break-long-words { word-wrap: break-word; overflow-wrap: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; min-width: 0; }
135+
.break-long-words { word-wrap: break-word; overflow-wrap: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; hyphenate-character: ''; min-width: 0; }
136136
.text-small { font-size: 12px !important; }
137137
.text-muted { color: #999; }
138138
.text-bold { font-weight: bold; }

0 commit comments

Comments
 (0)
0