Skip to content

Commit b28dfe1

Browse files
committed
bug symfony#24255 [TwigBundle] Break long lines in exceptions (kevin-verschaeve)
This PR was merged into the 3.3 branch. Discussion ---------- [TwigBundle] Break long lines in exceptions | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Break long lines in exception to stay in screen Before: ![exception_before](https://user-images.githubusercontent.com/2345927/30586794-63b35b44-9d31-11e7-90ce-507af56934d0.png) After: ![exception_after](https://user-images.githubusercontent.com/2345927/30586801-691c2548-9d31-11e7-9af4-54c01b4cc400.png) Commits ------- 1db99f3 [TwigBundle] Break long lines in exceptions
2 parents 949b17a + 1db99f3 commit b28dfe1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Bundle/TwigBundle/Resources/views/Exception/trace.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="trace-line-header {{ trace.file|default(false) ? 'sf-toggle' }}" data-toggle-selector="#trace-html-{{ prefix }}-{{ i }}" data-toggle-initial="{{ _display_code_snippet ? 'display' }}">
1+
<div class="trace-line-header break-long-words {{ trace.file|default(false) ? 'sf-toggle' }}" data-toggle-selector="#trace-html-{{ prefix }}-{{ i }}" data-toggle-initial="{{ _display_code_snippet ? 'display' }}">
22
{% if trace.file|default(false) %}
33
<span class="icon icon-close">{{ include('@Twig/images/icon-minus-square.svg') }}</span>
44
<span class="icon icon-open">{{ include('@Twig/images/icon-plus-square.svg') }}</span>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ header .container { display: flex; justify-content: space-between; }
105105
.trace-line a { color: #222; }
106106
.trace-line .icon { opacity: .4; position: absolute; left: 10px; top: 11px; }
107107
.trace-line .icon svg { height: 16px; width: 16px; }
108-
.trace-line-header { padding-left: 36px; }
108+
.trace-line-header { padding-left: 36px; padding-right: 10px; }
109109

110110
.trace-file-path, .trace-file-path a { color: #222; font-size: 13px; }
111111
.trace-class { color: #B0413E; }

0 commit comments

Comments
 (0)