Opened 3 days ago
Last modified 8 hours ago
#36850 assigned Bug
Django Admin filter sidebar wraps if it's inner content becomes too large — at Version 2
| Reported by: | Mark | Owned by: | |
|---|---|---|---|
| Component: | contrib.admin | Version: | 6.0 |
| Severity: | Release blocker | Keywords: | css |
| Cc: | Antoliny | Triage Stage: | Accepted |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | yes |
Description (last modified by )
In the course of ticket #36511 the layout of the changelist and it's filter sidebar has been changed so that the sidebar seemling should have a fixed width of 240px.
The flex-base property does in this case not restrict the width of the sidebar if it's content demands more (which happens eg. for dropdowns with large titles). Combined with the flex: wrap attribute, the sidebar wraps if the table also demands more width than available and looks broken (see attachment).
This behavior can be simulated by giving a sidebar's and changelist's children some fixed, large width:
#changelist-filter-extra-actions {
width: 290px;
}
#toolbar {
width: 1000px;
}
The problem could be resolved by reverting to the previous flex layout but the motivation for those changes is unclear to me from the ticket and related pr.
Should the width of the sidebar stick to 240px or - at it has been before - should the sidebar grow if necessary?
Are there any advantages to the current flex layout?
Change History (3)
by , 3 days ago
| Attachment: | Screenshot from 2026-01-07 15-00-57.png added |
|---|
comment:1 by , 3 days ago
| Summary: | Django Admin filter sidebar wraps if it's inner content becomes to large → Django Admin filter sidebar wraps if it's inner content becomes too large |
|---|
comment:2 by , 3 days ago
| Description: | modified (diff) |
|---|