From e541bdc6d7bc5e7dad323b5d2be3ce3d59e85611 Mon Sep 17 00:00:00 2001 From: wukko Date: Sat, 20 Jul 2024 19:09:44 +0600 Subject: [PATCH] web/Switcher: fix ghost hover effect on active button it used to appear very briefly when you pressed a button and didn't move the cursor off the button --- web/src/components/buttons/Switcher.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/src/components/buttons/Switcher.svelte b/web/src/components/buttons/Switcher.svelte index e7b3c0de..a72c4e77 100644 --- a/web/src/components/buttons/Switcher.svelte +++ b/web/src/components/buttons/Switcher.svelte @@ -53,6 +53,10 @@ pointer-events: none; } + .switcher :global(.button.active:hover) { + background: var(--secondary); + } + .switcher.big :global(.button) { width: 100%; /* [base button height] - ([switcher padding] * [padding factor to accommodate for]) */