Skip to content

Commit

Permalink
Apply direction:rtl to UI on RTL environment #3689
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jan 6, 2025
1 parent 159c5a5 commit 51b17e5
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions webextensions/sidebar/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,12 @@ tab-sound-button */ {
overflow: hidden;
}

:root.rtl #pinned-tabs-container,
:root.rtl #normal-tabs-container,
:root.rtl tab-item-substance .caption {
direction: rtl;
}

.virtual-scroll-container {
/* We need to use min-height instead of height for a flexbox. */
min-height: 0px; /* this will be updated dynamically by scroll.js */
Expand Down Expand Up @@ -547,17 +553,19 @@ tab-item.duplicating tab-item-substance {
}


:root.left tab-item tab-twisty {
:root.left tab-item tab-twisty,
:root.right.rtl tab-item tab-twisty {
order: -1;
}
:root.left tab-item tab-closebox {
:root.left tab-item tab-closebox,
:root.right.rtl tab-item tab-closebox {
order: 10000;
}

:root.right tab-item tab-twisty {
:root.right:not(.rtl) tab-item tab-twisty {
order: 10000;
}
:root.right tab-item tab-closebox {
:root.right:not(.rtl) tab-item tab-closebox {
order: -1;
}

Expand Down

0 comments on commit 51b17e5

Please sign in to comment.