#24968: ModelAdmin scrollbar problem when actions=None
--------------------------------------+-----------------------------
     Reporter:  zauddelig             |      Owner:  nobody
         Type:  Cleanup/optimization  |     Status:  new
    Component:  contrib.admin         |    Version:  1.8
     Severity:  Normal                |   Keywords:  changelist, css
 Triage Stage:  Unreviewed            |  Has patch:  1
Easy pickings:  0                     |      UI/UX:  1
--------------------------------------+-----------------------------
 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;
 }
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24968>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.493f41c48220806771f6c4fd89784924%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to