Skip to content

Commit 3843c10

Browse files
authored
Some display fixes with RTL (#21573)
* Fix RTL on dashboards widgets closes #21567 * Fix RTL on dashboard dropdown * Some fixes on userinfo/menu with RTL * Some fixes on searchbar with RTL * CS
1 parent 71b8767 commit 3843c10

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

css/includes/_base.scss

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,3 +580,37 @@ input.form-check-input[type="radio"]:disabled,
580580
input.form-check-input[type="checkbox"]:disabled {
581581
opacity: 0.9;
582582
}
583+
584+
html[dir='rtl'] {
585+
.form-select {
586+
background-position: left 1rem center;
587+
}
588+
589+
.pe-2 {
590+
padding-left: 0.5rem!important;
591+
padding-right: initial!important;
592+
}
593+
594+
.ms-md-4 {
595+
margin-left: initial!important;
596+
margin-right: 1.5rem !important;
597+
}
598+
599+
.input-group-flat .form-control:not(:last-child) {
600+
border-left: 0;
601+
border-right: var(--tblr-border-width);
602+
}
603+
604+
.input-group > :not(:first-child, .dropdown-menu, .valid-tooltip, .valid-feedback, .invalid-tooltip, .invalid-feedback) {
605+
margin-right: calc(-1 * var(--tblr-border-width));
606+
border-top-right-radius: 0;
607+
border-bottom-right-radius: 0;
608+
border-top-left-radius: var(--tblr-border-radius);
609+
border-bottom-left-radius: var(--tblr-border-radius);
610+
}
611+
612+
.input-group:not(.has-validation) > :not(:last-child, .dropdown-toggle, .dropdown-menu, .form-floating), .input-group:not(.has-validation) > .dropdown-toggle:nth-last-child(n+3), .input-group:not(.has-validation) > .form-floating:not(:last-child) > .form-control, .input-group:not(.has-validation) > .form-floating:not(:last-child) > .form-select {
613+
border-top-left-radius: 0;
614+
border-bottom-left-radius: 0;
615+
}
616+
}

css/standalone/dashboard.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,6 +1253,18 @@ $break_tablet: 1400px;
12531253
}
12541254
}
12551255

1256+
html[dir="rtl"] {
1257+
.dashboard {
1258+
.card {
1259+
text-align: right;
1260+
}
1261+
}
1262+
1263+
.main-icon {
1264+
left: 5px;
1265+
}
1266+
}
1267+
12561268
.embed_block {
12571269
border: 1px dashed #a0a0a04f;
12581270
padding: 5px 10px;

0 commit comments

Comments
 (0)