Skip to content

best way to save what you love

web/Switcher: fix rounded corners in RTL layout

wukko72c30a58aa86
diff --git a/web/src/components/buttons/Switcher.svelte b/web/src/components/buttons/Switcher.svelte
index 2ead0caf..0792c9e4 100644
--- a/web/src/components/buttons/Switcher.svelte
+++ b/web/src/components/buttons/Switcher.svelte
@@ -43,6 +43,20 @@
border-bottom-left-radius: 0;
}
+ .switcher:not(.big):dir(rtl) :global(.button:first-child) {
+ border-top-right-radius: inherit;
+ border-bottom-right-radius: inherit;
+ border-top-left-radius: 0;
+ border-bottom-left-radius: 0;
+ }
+
+ .switcher:not(.big):dir(rtl) :global(.button:last-child) {
+ border-top-left-radius: inherit;
+ border-bottom-left-radius: inherit;
+ border-top-right-radius: 0;
+ border-bottom-right-radius: 0;
+ }
+
.switcher.big {
background: var(--button);
box-shadow: var(--button-box-shadow);