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
This commit is contained in:
wukko 2024-07-20 19:09:44 +06:00
parent 31b0178b0b
commit 48722646a8
No known key found for this signature in database
GPG Key ID: 3E30B3F26C7B4AA2

View File

@ -53,6 +53,10 @@
pointer-events: none; pointer-events: none;
} }
.switcher :global(.button.active:hover) {
background: var(--secondary);
}
.switcher.big :global(.button) { .switcher.big :global(.button) {
width: 100%; width: 100%;
/* [base button height] - ([switcher padding] * [padding factor to accommodate for]) */ /* [base button height] - ([switcher padding] * [padding factor to accommodate for]) */