Skip to content

A platform for community discussion. Free, open, simple.

FIX: Topic progress bar should be on the left in RTL layouts (#11999)

Osama Sayeghdbb015f03e2e
diff --git a/app/assets/stylesheets/mobile/topic.scss b/app/assets/stylesheets/mobile/topic.scss
index 9a6a8788661..6d6fc7aabb9 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;
}
}