diff --git a/django/contrib/admin/static/admin/css/responsive.css b/django/contrib/admin/static/admin/css/responsive.css index 55f67f0659..9ce4f67bf2 100644 --- a/django/contrib/admin/static/admin/css/responsive.css +++ b/django/contrib/admin/static/admin/css/responsive.css @@ -620,7 +620,6 @@ input[type="submit"], button { } .aligned p.file-upload { - margin-left: 0; font-size: 0.8125rem; } diff --git a/django/contrib/admin/static/admin/css/widgets.css b/django/contrib/admin/static/admin/css/widgets.css index 572dc0a500..5f7adcb221 100644 --- a/django/contrib/admin/static/admin/css/widgets.css +++ b/django/contrib/admin/static/admin/css/widgets.css @@ -368,10 +368,6 @@ p.file-upload { font-weight: bold; } -.aligned p.file-upload { - margin-left: 170px; -} - .file-upload a { font-weight: normal; } diff --git a/docs/releases/4.2.1.txt b/docs/releases/4.2.1.txt index f8bf6cc9d4..ffc9394dae 100644 --- a/docs/releases/4.2.1.txt +++ b/docs/releases/4.2.1.txt @@ -41,3 +41,6 @@ Bugfixes * Fixed a regression in Django 4.2 that caused a crash of :class:`~django.contrib.postgres.search.SearchHeadline` function with ``psycopg`` 3 (:ticket:`34486`). + +* Fixed a regression in Django 4.2 that caused incorrect ``ClearableFileInput`` + margins in the admin (:ticket:`34506`).