From 0a805cf42d0bb263114a1fa200ee13d6b3b8fdeb Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 21 Apr 2023 19:49:59 +0200 Subject: [PATCH] [4.2.x] Fixed #34506 -- Fixed margin of ClearableFileInput in admin CSS. Regression in 96a598356a9ea8c2c05b22cadc12e256a3b295fd. Backport of 92537e83c1322c40dd39a8f0f9c78018307f2102 from main --- django/contrib/admin/static/admin/css/responsive.css | 1 - django/contrib/admin/static/admin/css/widgets.css | 4 ---- docs/releases/4.2.1.txt | 3 +++ 3 files changed, 3 insertions(+), 5 deletions(-) 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`).