Problem/Motivation
On /admin/structure/display-builder/instances with Gin as admin theme, the filter card has no inner padding: the Context label and select touch the card's left edge.
In modules/display_builder_ui/css/instance-list.css every padding of form.db-list-filter-form and .db-list-filters uses --admin-space-* variables with a 0 fallback. Those variables only exist in the Default Admin theme, so in Gin the padding resolves to 0, although the file's comment says the fallbacks are there for themes without them.
Steps to reproduce
- Set Gin as admin theme, on 1.0.x.
- Open
/admin/structure/display-builder/instances. - The filter fields sit flush against the left edge of the filter card.
On instances list

On core content list

Proposed resolution
Give the padding variables non-zero fallbacks, e.g. padding: var(--admin-space-xs, 0.5rem) var(--admin-space-l, 1.5rem) var(--admin-space-xs, 0.5rem), matching the non-zero fallbacks the margins in the same file already use.
Remaining tasks
- MR
- Check the presets list, which shares the same form class (#3631292).
User interface changes
The list filter form gets inner padding in admin themes other than Default Admin.
| Comment | File | Size | Author |
|---|
Issue fork display_builder-3633766
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3633766-list-filter-form
changes, plain diff MR !529
Comments
Comment #2
csakiistvanComment #4
csakiistvanMR is ready for review, pls check
Comment #5
csakiistvanComment #6
pdureau commentedI am discovering we have an
modules/display_builder_ui/css/instance-list.css😲.display_builder_uimodule is not supposed to have any asset library.Will this file still needed with #3623275: Replace the instances admin list with a View ? It is still loaded by
PatternPresetListBuilderusingFilteredListBuilderTrait, but is it really needed?If no, lets close this one as "Won't fix" and remove the file directly in #3623275: Replace the instances admin list with a View.
Comment #7
pdureau commentedinstance-list.csshas been removed in #3623275: Replace the instances admin list with a ViewLet's close this ticket.
Comment #8
pdureau commented