From 56aa5a8847d330ae8c07e18682bf34cbc4353e78 Mon Sep 17 00:00:00 2001 From: Vladyslav Hroshev Date: Tue, 20 Jun 2023 18:19:40 +0300 Subject: [PATCH] OSD: fix button margins in Modal Dialogs when Right-to-Left --- css/osd.css | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/css/osd.css b/css/osd.css index 876f762..d98a877 100644 --- a/css/osd.css +++ b/css/osd.css @@ -69,16 +69,22 @@ /* if first button: margin-right: 12px/2 */ -.modal-dialog-linked-button:first-child, -.notification-button:first-child, -.hotplug-notification-item:first-child { +.modal-dialog-linked-button:ltr:first-child, +.notification-button:ltr:first-child, +.hotplug-notification-item:ltr:first-child, +.modal-dialog-linked-button:rtl:last-child, +.notification-button:rtl:last-child, +.hotplug-notification-item:rtl:last-child { margin: 0 6px 12px 12px !important; } /* if last button: margin-left: 12px/2 */ -.modal-dialog-linked-button:last-child, -.notification-button:last-child, -.hotplug-notification-item:last-child { +.modal-dialog-linked-button:ltr:last-child, +.notification-button:ltr:last-child, +.hotplug-notification-item:ltr:last-child, +.modal-dialog-linked-button:rtl:first-child, +.notification-button:rtl:first-child, +.hotplug-notification-item:rtl:first-child { margin: 0 12px 12px 6px !important; }