barryvdh / laravel-debugbar

Debugbar for Laravel (Integrates PHP Debug Bar)
MIT License
16.57k stars 1.53k forks source link

Toolbar refinements #1610

Closed nckrtl closed 2 months ago

nckrtl commented 3 months ago

Was taking another look at the toolbar and found some more things that could be improved

Visual side by side: visual-changes

Also noticed that the rows of the request data is not nicely aligned anymore:

Screenshot 2024-04-04 at 21 39 23

I saw this remark: https://github.com/barryvdh/laravel-debugbar/pull/1605#discussion_r1551759026 and also the PR that is causing the misalignment: https://github.com/barryvdh/laravel-debugbar/pull/1608

This CSS fixes the alignment, while making sure there is enough space for the key to be fully displayed and not being cut off.

dl.phpdebugbar-widgets-kvlist dt {
    width: 25%;
    width: calc(25% - 10px);
}

Note that this is now properly calculating the width instead of width: calc(25%-10px); which I included and then removed in some commits ago as it was invalid due to missing spaces.

Screenshot 2024-04-05 at 00 06 13