Skip to content

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

UX: improves dashboard UI for RTL locales

Joffrey JAFFEUX87edde3113b2
diff --git a/app/assets/stylesheets/common/admin/dashboard_next.scss b/app/assets/stylesheets/common/admin/dashboard_next.scss
index 007add06de7..88ea78ac7e3 100644
--- a/app/assets/stylesheets/common/admin/dashboard_next.scss
+++ b/app/assets/stylesheets/common/admin/dashboard_next.scss
@@ -464,3 +464,44 @@
}
}
}
+
+
+.rtl .dashboard-next {
+ .section-column {
+ &:last-child, {
+ margin-right: 1em;
+ margin-left: 0;
+ }
+
+ &:first-child {
+ margin-left: 1em;
+ margin-right: 0;
+ }
+ }
+
+ .dashboard-table table tbody tr {
+ td.title {
+ text-align: right;
+ }
+
+ td.value i {
+ margin-right: 0;
+ margin-left: -12px;
+ }
+ }
+
+ .user-metrics .table-cell {
+ margin: 0 0 5px 10px;
+ }
+
+ .table-cell {
+ .label {
+ border-radius: 0 9px 9px 0;
+
+ .d-icon {
+ margin-right: 0;
+ margin-left: 5px;
+ }
+ }
+ }
+}