fix(client/rtl): wrong order of tabs

This commit is contained in:
Elian Doran 2025-10-09 17:45:48 +03:00
parent f9a841245c
commit f880aa769c
No known key found for this signature in database
2 changed files with 4 additions and 1 deletions

View File

@ -1055,7 +1055,7 @@ body.layout-horizontal .tab-row-widget .note-tab .note-tab-wrapper {
background-color: var(--workspace-tab-background-color);
}
.tab-row-widget .note-tab:nth-child(1) {
body:not([dir=rtl]) .tab-row-widget .note-tab:nth-child(1) {
transform: translate3d(var(--tab-first-item-horiz-offset), 0, 0);
}

View File

@ -500,6 +500,9 @@ export default class TabRowWidget extends BasicWidget {
position -= MARGIN_WIDTH; // the last margin should not be applied
const anchorPosition = position;
if (glob.isRtl) {
tabPositions.reverse();
}
return { tabPositions, anchorPosition };
}