From dbb015f03e2e67eae655dacd6dbee155b9497659 Mon Sep 17 00:00:00 2001 From: Osama Sayegh Date: Mon, 8 Feb 2021 09:42:55 +0300 Subject: [PATCH] FIX: Topic progress bar should be on the left in RTL layouts (#11999) --- app/assets/stylesheets/mobile/topic.scss | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/mobile/topic.scss b/app/assets/stylesheets/mobile/topic.scss index 9a6a878866..6d6fc7aabb 100644 --- a/app/assets/stylesheets/mobile/topic.scss +++ b/app/assets/stylesheets/mobile/topic.scss @@ -50,8 +50,14 @@ margin-bottom: env(safe-area-inset-bottom); } html.rtl & { - right: 0; - left: 1em; + /** + * This should be the other way around, but it has to be "wrong" here + * because our RTL CSS is generated using the `rtlit` gem which flips + * left to right and right to left, so this will be corrected when it + * goes through rtlit. + */ + left: unset; + right: 1em; } }