Fix rendering bug by not enlarging buttons
Previously, the buttons left weird smudges when moving the mouse while a button was enlarged. It appears to be a rendering engine bug (webkit gtk), since the same does not happen in Firefox/Chromium. This fix avoids enlarging the buttons so no residue is left behind.
This commit is contained in:
parent
47340858b0
commit
7a58ac37f7
1 changed files with 6 additions and 2 deletions
|
|
@ -6,8 +6,12 @@ const props = defineProps<{
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
class="flex select-none items-center rounded-sm border p-0.5 transition hover:scale-110 active:scale-95"
|
class="flex select-none items-center rounded-sm border p-0.5 transition hover:bg-neutral-200 active:scale-95"
|
||||||
:class="props.inverted ? 'border-black bg-black text-white' : 'bg-white text-black'"
|
:class="
|
||||||
|
props.inverted
|
||||||
|
? 'border-black bg-black text-white hover:bg-neutral-600'
|
||||||
|
: 'bg-white text-black'
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue