#25827: DateTimeField in admin TabularInline has unsightly left margin
-------------------------------+------------------------------------
     Reporter:  timgraham      |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  contrib.admin  |                  Version:  1.8
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  1              |                    UI/UX:  0
-------------------------------+------------------------------------

Comment (by bmispelon):

 (I spoke a bit too fast about the change not affecting StackedInline: a
 10px appears when you delete the rule).

 This small change seems to fix it for me with no ill effect that I can
 see:
 {{{#!diff
 diff --git a/django/contrib/admin/static/admin/css/forms.css
 b/django/contrib/admin/static/admin/css/forms.css
 index 2a21257..f43cc7b 100644
 --- a/django/contrib/admin/static/admin/css/forms.css
 +++ b/django/contrib/admin/static/admin/css/forms.css
 @@ -87,7 +87,7 @@ form ul.inline li {
      padding: 6px 0;
      margin-top: 0;
      margin-bottom: 0;
 -    margin-left: 170px;
 +    margin-left: 160px;
  }

  .aligned ul label {
 diff --git a/django/contrib/admin/static/admin/css/widgets.css
 b/django/contrib/admin/static/admin/css/widgets.css
 index 15d3f83..8150e0f 100644
 --- a/django/contrib/admin/static/admin/css/widgets.css
 +++ b/django/contrib/admin/static/admin/css/widgets.css
 @@ -256,7 +256,6 @@ p.datetime {
  }

  form .form-row p.datetime {
 -    margin-left: 160px;
      padding-left: 10px;
  }

 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25827#comment:2>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.8a159454fb264597752c84be7d655445%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to