Skip to content

Build your personal knowledge base with Trilium Notes

feat(client/rtl): handle transform

Elian Doran3d9861f9046e
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css
index 06bc4ac017..95a0a450c7 100644
--- a/apps/client/src/stylesheets/style.css
+++ b/apps/client/src/stylesheets/style.css
@@ -586,6 +586,10 @@ button.btn-sm {
z-index: 1000;
}
+body[dir=rtl] .ck.ck-block-toolbar-button {
+ transform: translateX(-7px);
+}
+
pre:not(.hljs) {
color: var(--main-text-color) !important;
white-space: pre-wrap;
diff --git a/apps/client/src/stylesheets/theme-next/shell.css b/apps/client/src/stylesheets/theme-next/shell.css
index 6fa8dea854..59b2d0bfe1 100644
--- a/apps/client/src/stylesheets/theme-next/shell.css
+++ b/apps/client/src/stylesheets/theme-next/shell.css
@@ -685,6 +685,10 @@ body.layout-vertical.background-effects div.quick-search .dropdown-menu {
border-radius: 50%;
}
+body[dir=rtl] #left-pane span.fancytree-node.protected > span.fancytree-custom-icon:after {
+ transform: translateX(-25%);
+}
+
body.mobile .fancytree-expander::before,
body.mobile .fancytree-title,
body.mobile .fancytree-node > span {
diff --git a/apps/client/src/widgets/collections/geomap/index.css b/apps/client/src/widgets/collections/geomap/index.css
index 3990ce63e6..9fc5dee636 100644
--- a/apps/client/src/widgets/collections/geomap/index.css
+++ b/apps/client/src/widgets/collections/geomap/index.css
@@ -68,6 +68,10 @@
overflow: hidden;
}
+body[dir=rtl] .geo-map-container .leaflet-div-icon .title-label {
+ transform: translateX(50%);
+}
+
.geo-map-container .leaflet-div-icon .archived {
opacity: 0.5;
}