Remove extraneous padding in chooser modal listings

Fixes #11704
pull/11697/head
Sage Abdullah 2024-02-29 12:15:50 +00:00 zatwierdzone przez LB (Ben Johnston)
rodzic a7a09f7348
commit a106a3e805
3 zmienionych plików z 11 dodań i 3 usunięć

Wyświetl plik

@ -20,6 +20,7 @@ Changelog
* Fix: Ensure re-ordering buttons work correctly when using a nested InlinePanel (Adrien Hamraoui)
* Fix: Consistently remove model's `verbose_name` in group edit view when listing custom permissions (Sage Abdullah, Neeraj Yetheendran, Omkar Jadhav)
* Fix: Resolve issue local development of docs when running `make livehtml` (Sage Abdullah)
* Fix: Resolve issue with unwanted padding in chooser modal listings (Sage Abdullah)
* Docs: Add contributing development documentation on how to work with a fork of Wagtail (Nix Asteri, Dan Braghis)
* Docs: Make sure the settings panel is listed in tabbed interface examples (Tibor Leupold)
* Docs: Update content and page names to their US spelling instead of UK spelling (Victoria Poromon)

Wyświetl plik

@ -635,9 +635,15 @@ table.listing {
}
}
// If no bulk actions are present, and nice padding is not applied,
// apply the same 80px padding via the first column's left padding.
&:not(.nice-padding &, .report &):not(
// If either:
// - no nice padding is applied,
// - we're not in a report listing,
// - we're not in the editor view,
// and:
// - no bulk actions are present,
// - we're not in the "custom ordering" mode,
// then apply the same 80px padding via the first column's left padding.
&:not(.nice-padding &, .report &, .editor-view &):not(
:has(.bulk-actions-filter-checkbox, .ord)
) {
th:first-child,

Wyświetl plik

@ -33,6 +33,7 @@ depth: 1
* Ensure re-ordering buttons work correctly when using a nested InlinePanel (Adrien Hamraoui)
* Consistently remove model's `verbose_name` in group edit view when listing custom permissions (Sage Abdullah, Neeraj Yetheendran, Omkar Jadhav)
* Resolve issue local development of docs when running `make livehtml` (Sage Abdullah)
* Resolve issue with unwanted padding in chooser modal listings (Sage Abdullah)
### Documentation