8000 minor #46507 [WebProfilerBundle] Fix AJAX requests info are truncated… · symfony/symfony@051f5a4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 051f5a4

Browse files
minor #46507 [WebProfilerBundle] Fix AJAX requests info are truncated in the WDT (tucksaun)
This PR was merged into the 4.4 branch. Discussion ---------- [WebProfilerBundle] Fix AJAX requests info are truncated in the WDT | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #45741?, replaces #46495 ? | License | MIT | Doc PR | n/a At some point (I guess during the WDT redesign, #15160), something changed making the AJAX request table in the WDT just a little bit larger. This causes the requests to be truncated when the URL is too long: <img width="824" alt="Screenshot 2022-05-30 at 10 21 51" src="https://user-images.githubusercontent.com/870118/171017432-8eeec54d-1342-427d-b885-a590db978458.png"> This PR fixes this by increasing the max-width of the WDT info panel to 525px: <img width="866" alt="Screenshot 2022-05-30 at 10 22 20" src="https://user-images.githubusercontent.com/870118/171018191-9370c1e0-9ecb-487f-ad1c-300b831ae2d6.png"> We could reduce the width of the request table to fit in, but 525px seems reasonable enough nowadays and provides more information about the URL. Commits ------- a5c2e1d [WebProfilerBundle] Fix AJAX requests info are truncated in the WDT
2 parents 61f38c7 + a5c2e1d commit 051f5a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ div.sf-toolbar .sf-toolbar-block a:hover {
324324
.sf-toolbar-block.hover .sf-toolbar-info {
325325
display: block;
326326
padding: 10px;
327-
max-width: 480px;
327+
max-width: 525px;
328328
max-height: 480px;
329329
word-wrap: break-word;
330330
overflow: hidden;

0 commit comments

Comments
 (0)
0