Skip to content

Build your personal knowledge base with Trilium Notes

fix(client/rtl): toggling not working

Elian Doran8a8727e6dfa6
diff --git a/apps/client/src/widgets/react/FormToggle.css b/apps/client/src/widgets/react/FormToggle.css
index e65002a4ad..9418391430 100644
--- a/apps/client/src/widgets/react/FormToggle.css
+++ b/apps/client/src/widgets/react/FormToggle.css
@@ -62,6 +62,10 @@ body[dir=rtl] .switch-widget .switch-button:after {
background 100ms ease-in;
}
+body[dir=rtl] .switch-widget .switch-button.on:after {
+ --x: calc((var(--switch-track-width) - var(--switch-thumb-width) - var(--y)) * -1);
+}
+
.switch-widget .switch-button input[type="checkbox"] {
/* A hidden check box for accesibility purposes */