From b1d6b35e146aea83b171c1b921178bbaae2795ed Mon Sep 17 00:00:00 2001 From: Min ho Kim Date: Tue, 17 Sep 2019 22:30:33 +1000 Subject: [PATCH] Fixed #30725 -- Fixed width of DateTimeField inputs in admin tabular inline. "width" of DateTimeField inputs in admin tabular inline wasn't set correctly what caused displaying too small inputs with responsive CSS when timezone warning wasn't present. --- django/contrib/admin/static/admin/css/responsive.css | 4 ++++ django/contrib/admin/static/admin/css/widgets.css | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/django/contrib/admin/static/admin/css/responsive.css b/django/contrib/admin/static/admin/css/responsive.css index 5b0d1ec39bd..b3db28fbf04 100644 --- a/django/contrib/admin/static/admin/css/responsive.css +++ b/django/contrib/admin/static/admin/css/responsive.css @@ -392,6 +392,10 @@ input[type="submit"], button { color: #ccc; } + .form-row .datetime input.vDateField, .form-row .datetime input.vTimeField { + width: 75%; + } + .inline-group { overflow: auto; } diff --git a/django/contrib/admin/static/admin/css/widgets.css b/django/contrib/admin/static/admin/css/widgets.css index d3bd67ac931..6dbc58e018e 100644 --- a/django/contrib/admin/static/admin/css/widgets.css +++ b/django/contrib/admin/static/admin/css/widgets.css @@ -263,7 +263,6 @@ p.datetime { } .datetime input, .form-row .datetime input.vDateField, .form-row .datetime input.vTimeField { - min-width: 0; margin-left: 5px; margin-bottom: 4px; }