Skip to content

Web profiler AJAX request div is too narrow to fit long URLs #45741

Closed
@pauljura

Description

@pauljura

Symfony version(s) affected

6.0.6

Description

Hi, this is a pretty simple request:

The div that shows AJAX requests has a max-width that is just a bit too narrow to show all information when the URL is long. I think it's just not taking into account the width of the ellipsis that gets displayed when URLs are long enough to be clipped.

Example:

image

How to reproduce

Just make some AJAX requests in your dev environment with a long URL and look in the toolbar.

Possible Solution

Make the max-width a bit larger. I find that changing from 480px to 520px is enough.

Sorry I don't know how to do a PR but I believe the relevant CSS is here:

https://github.com/symfony/web-profiler-bundle/blob/1497b1d22c2807a77563439f8ec489407a989d59/Resources/views/Profiler/toolbar.css.twig#L336

What this looks like when I edit in Chrome dev tools:

image

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions