Skip to content

Build your personal knowledge base with Trilium Notes

feat(client/rtl): handle right

Elian Doran87fb3c1e828d
diff --git a/apps/client/src/widgets/dialogs/popup_editor.ts b/apps/client/src/widgets/dialogs/popup_editor.ts
index c145be23ae..1deb584d93 100644
--- a/apps/client/src/widgets/dialogs/popup_editor.ts
+++ b/apps/client/src/widgets/dialogs/popup_editor.ts
@@ -47,7 +47,7 @@ const TPL = /*html*/`\
position: sticky;
top: 0;
inset-inline-start: 0;
- right: 0;
+ inset-inline-end: 0;
background: var(--modal-background-color);
z-index: 998;
}
diff --git a/apps/client/src/widgets/note_tree.ts b/apps/client/src/widgets/note_tree.ts
index 4636cd60d1..f4f600929a 100644
--- a/apps/client/src/widgets/note_tree.ts
+++ b/apps/client/src/widgets/note_tree.ts
@@ -61,7 +61,7 @@ const TPL = /*html*/`
display: flex;
align-items: flex-end;
justify-content: flex-end;
- right: 17px;
+ inset-inline-end: 17px;
border-radius: 7px;
border: 1px solid var(--main-border-color);
}
@@ -82,15 +82,15 @@ const TPL = /*html*/`
}
.collapse-tree-button {
- right: 100px;
+ inset-inline-end: 100px;
}
.scroll-to-active-note-button {
- right: 55px;
+ inset-inline-end: 55px;
}
.tree-settings-button {
- right: 10px;
+ inset-inline-end: 10px;
}
.tree-settings-popup {
diff --git a/apps/client/src/widgets/promoted_attributes.ts b/apps/client/src/widgets/promoted_attributes.ts
index 324d5468f1..5853e1d87e 100644
--- a/apps/client/src/widgets/promoted_attributes.ts
+++ b/apps/client/src/widgets/promoted_attributes.ts
@@ -96,7 +96,7 @@ const TPL = /*html*/`
position: absolute;
top: 10px;
inset-inline-start: 0px;
- right: 0;
+ inset-inline-end: 0;
height: 2px;
background: rgba(0, 0, 0, 0.5);
transform: rotate(45deg);
diff --git a/apps/client/src/widgets/type_widgets/mind_map.ts b/apps/client/src/widgets/type_widgets/mind_map.ts
index 59e1a7a3e5..a6f299455a 100644
--- a/apps/client/src/widgets/type_widgets/mind_map.ts
+++ b/apps/client/src/widgets/type_widgets/mind_map.ts
@@ -29,7 +29,7 @@ const TPL = /*html*/`
.map-container .node-menu {
position: absolute;
top: 60px;
- right: 20px;
+ inset-inline-end: 20px;
bottom: 80px;
overflow: auto;
background: var(--panel-bgcolor);
diff --git a/apps/client/src/widgets/type_widgets/read_only_text.ts b/apps/client/src/widgets/type_widgets/read_only_text.ts
index 51c83cd5bb..2bbd9798e5 100644
--- a/apps/client/src/widgets/type_widgets/read_only_text.ts
+++ b/apps/client/src/widgets/type_widgets/read_only_text.ts
@@ -56,7 +56,7 @@ const TPL = /*html*/`
.edit-text-note-button {
position: absolute;
top: 5px;
- right: 10px;
+ inset-inline-end: 10px;
font-size: 150%;
padding: 5px;
cursor: pointer;