fix(client/rtl): toggle buttons out of bounds

This commit is contained in:
Elian Doran 2025-10-08 18:14:35 +03:00
parent 09c5686cb7
commit b0bb93975a
No known key found for this signature in database

View File

@ -50,6 +50,10 @@
background 200ms ease-out; background 200ms ease-out;
} }
body[dir=rtl] .switch-widget .switch-button:after {
--x: calc(var(--y) * -1);
}
.switch-widget .switch-button.on:after { .switch-widget .switch-button.on:after {
--x: calc(var(--switch-track-width) - var(--switch-thumb-width) - var(--y)); --x: calc(var(--switch-track-width) - var(--switch-thumb-width) - var(--y));