-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Reduce vertical padding in dashboard table rows for more compact layout #12145
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
Conversation
d500e62 to
ae005d7
Compare
ae005d7 to
7294f14
Compare
|
The test failures I believe are unrelated to this PR (they are in the load balancer area, and these are Web UI only changes)... |
|
Hello @leccelecce, thank you for the PR, it looks great! I just have a suggestion on a simpler approach to apply this change globally across the dashboard. Faency has a function called This way, the custom padding will be applied to all |
|
Thank you for your review! I am happy to take whatever approach is preferred. My only query is whether this approach of direct CSS overrides is a little brittle, because if Faency is future changes from building a table using |
|
@leccelecce I believe this approach should be safe enough to be taken. If in the future there will be a drastic change on Faency that wouldn't allow us to use this CSS override anymore, then it should be a breaking change and we will have chances to adjust accordingly. But in theory, we would like to avoid this kind of breaking changes because it's one of the core functions of the library 🙂 |
25ceaef to
5462344
Compare
5462344 to
05de067
Compare
52d0526 to
c6b3d8c
Compare
c6b3d8c to
fade8a1
Compare
rtribotte
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
kevinpollet
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
🚫 checks status: PR status: cancelled |
|
🚫 checks status: PR status: cancelled |
|
🚫 checks status: PR status: failure |
|
Thank you guys for accepting the PR, much appreciated ! |

What does this PR do?
This PR reduces the vertical padding on table cells on the router, middleware and services pages.
You can see before and after images on #12132
Motivation
I raised in #12132 the fact that there is too much unused space which doesn't make good use of screen real estate. It was agreed this could be a sensible change.
Other notes
The default styling seems to come from the Faency library here: https://github.com/traefik/faency/blob/2998bd08454a830f29e5c5d1feead56d994db960/components/Table/Table.tsx#L61
I couldn't see a more straightforward way to customise the padding across multiple pages than creating my own SlimmerAriaTd component. This may well not be the best approach! Happy to look at alternatives if required.