Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8e517f6

Browse files
committed
feature #23706 [Webprofiler] Improve sql explain table display (mimol91)
This PR was merged into the 3.4 branch. Discussion ---------- [Webprofiler] Improve sql explain table display | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes? | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Table which is shown in Weprofiler is not clean while values in sql explain table are long. This PR adds horizontal scroll for long tables. **Related PR in Doctrine bundle:** doctrine/DoctrineBundle#681 _(It does not cause any backward compatibility problems)_ **Before:** ![before](https://user-images.githubusercontent.com/2659069/28733410-0ca76826-73ed-11e7-9fea-b3c49a5442ed.gif) **After:** ![after](https://user-images.githubusercontent.com/2659069/28733415-11b76ae6-73ed-11e7-9e1a-ace661a1cd44.gif) Commits ------- 2769550 improve sql explain table display
2 parents 57a86fb + 2769550 commit 8e517f6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,13 @@ table.logs .metadata {
874874
margin: .5em 0;
875875
padding: 1em;
876876
}
877+
.sql-explain {
878+
overflow-x: auto;
879+
max-width: 920px;
880+
}
881+
.sql-explain table td, .sql-explain table tr {
882+
word-break: normal;
883+
}
877884
.queries-table pre {
878885
{{ mixins.break_long_words|raw }}
879886
margin: 0;

0 commit comments

Comments
 (0)