Skip to content

Commit 0a9a264

Browse files
bug #49477 [WebProfilerBundle] Fix the rendering of query explanation with Postgresql (stof)
This PR was merged into the 6.2 branch. Discussion ---------- [WebProfilerBundle] Fix the rendering of query explanation with Postgresql | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | | License | MIT | Doc PR | n/a Postgresql (and some other platforms) provide a textual query explanation rather than a tabular one. The previous styles were working only for a tabular display. For text allowing to break words, `min-content` is the width of a single letter. With the old code (introduced in #46750), a query explanation looks like that when using Postgresql (well, with a lot more lines that what is included in the screenshot): ![image](https://user-images.githubusercontent.com/439401/220405453-ffdb0b24-91fe-4ba5-aeb6-4a919b07d007.png) After the change, it looks like that (including only the first few lines), which is a lot easier to read: ![image](https://user-images.githubusercontent.com/439401/220405829-8a279d4f-2f1a-42db-bae1-2fd4d4279550.png) Commits ------- f238349 Fix the rendering of query explanation with Postgresql
2 parents e03caa2 + f238349 commit 0a9a264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -2079,7 +2079,7 @@ tr.log-status-silenced > td:first-child:before {
20792079
max-width: 888px;
20802080
}
20812081
.width-full .sql-explain {
2082-
max-width: min-content;
2082+
max-width: unset;
20832083
}
20842084
.sql-explain table td, .sql-explain table tr {
20852085
word-break: normal;

0 commit comments

Comments
 (0)