Skip to content

[WebProfilerBundle] Fix AJAX requests info are truncated in the WDT #46507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 31, 2022

Conversation

tucksaun
Copy link
Contributor

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:
Screenshot 2022-05-30 at 10 21 51

This PR fixes this by increasing the max-width of the WDT info panel to 525px:
Screenshot 2022-05-30 at 10 22 20

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.

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this change ... but I think it doesn't fully solve the issues mentioned in #45741.

I'd merge this one without closing #45741 yet to see if we think of an additional solution.

@tucksaun
Copy link
Contributor Author

looks a good plan @javiereguiluz 👌

Regarding a best solution: in #46495 you mention having the full URL as a title to be able to have it shown by hovering it.
This is already the case:

@nicolas-grekas
Copy link
Member

Thank you @tucksaun.

@nicolas-grekas nicolas-grekas merged commit 051f5a4 into symfony:4.4 May 31, 2022
@ghost
Copy link

ghost commented May 31, 2022

@nicolas-grekas The issue is that this might be a patch solution I am afraid. You can see it here,
#45741 (comment)

@tucksaun tucksaun deleted the wdt-ajax-infos-truncated branch May 31, 2022 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants