From 57c1dd466ff0d41760049d6818e82be9d767c7da Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 30 Nov 2023 09:39:05 +0100 Subject: [PATCH] Fixed #35004 -- Corrected the direction of arrows in admin selector boxes for RTL languages on small screens. Follow up to 12617fbd859b1244e91bcf182a2fdf356b388821. --- .../admin/static/admin/css/responsive_rtl.css | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/django/contrib/admin/static/admin/css/responsive_rtl.css b/django/contrib/admin/static/admin/css/responsive_rtl.css index 31dc8ff7db..08a6cd7038 100644 --- a/django/contrib/admin/static/admin/css/responsive_rtl.css +++ b/django/contrib/admin/static/admin/css/responsive_rtl.css @@ -58,6 +58,22 @@ padding-left: 0; padding-right: 16px; } + + [dir="rtl"] .selector-add { + background-position: 0 -80px; + } + + [dir="rtl"] .selector-remove { + background-position: 0 -120px; + } + + [dir="rtl"] .active.selector-add:focus, .active.selector-add:hover { + background-position: 0 -100px; + } + + [dir="rtl"] .active.selector-remove:focus, .active.selector-remove:hover { + background-position: 0 -140px; + } } /* MOBILE */