Opened 10 years ago
Last modified 10 years ago
#24968 closed Cleanup/optimization
ModelAdmin scrollbar problem when actions=None — at Initial Version
Reported by: | zauddelig | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | 1.8 |
Severity: | Normal | Keywords: | changelist, css |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | yes |
Description
Having a class like this:
class MyModelAdmin(admin.ModelAdmin): actions = None
Will lead to a list view with single column table and an unexpected horizontal scrollbar.
The problem appears with Opera.
To my opinion the problem is with this line in django/contrib/admin/static/admin/css/changelists.css
:
#changelist table tbody td:first-child, #changelist table tbody th:first-child { border-left: 0; border-right: 1px solid #ddd; }
this not takes in consideration when we have th:first-child
that is also a last-child
the proposed solution is to add this rule:
#changelist table tbody th:first-child:last-child { border-right: 0; }
Note:
See TracTickets
for help on using tickets.