mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
fix(client/rtl): wrong order of tabs
This commit is contained in:
parent
f9a841245c
commit
f880aa769c
@ -1055,7 +1055,7 @@ body.layout-horizontal .tab-row-widget .note-tab .note-tab-wrapper {
|
|||||||
background-color: var(--workspace-tab-background-color);
|
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);
|
transform: translate3d(var(--tab-first-item-horiz-offset), 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -500,6 +500,9 @@ export default class TabRowWidget extends BasicWidget {
|
|||||||
position -= MARGIN_WIDTH; // the last margin should not be applied
|
position -= MARGIN_WIDTH; // the last margin should not be applied
|
||||||
|
|
||||||
const anchorPosition = position;
|
const anchorPosition = position;
|
||||||
|
if (glob.isRtl) {
|
||||||
|
tabPositions.reverse();
|
||||||
|
}
|
||||||
|
|
||||||
return { tabPositions, anchorPosition };
|
return { tabPositions, anchorPosition };
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user