nit tw classes (#7119)

This commit is contained in:
Diego Imbert
2025-11-12 14:39:32 +01:00
committed by GitHub
parent 44dd8e3a07
commit 0edb7e199d
3 changed files with 7 additions and 3 deletions
@@ -14,7 +14,7 @@
variant="default"
btnClasses={twMerge(
connecting ? 'text-accent' : '',
'bg-surface hover:bg-surface group/plug-btn overflow-clip flex p-0'
'bg-surface hover:bg-surface-hover group/plug-btn overflow-clip flex p-0'
)}
on:click
{...id ? { id } : {}}
@@ -24,8 +24,9 @@
iconOnly
unifiedSize="sm"
color="light"
wrapperClasses="shrink-0"
btnClasses={twMerge(
'hover:bg-surface-hover rounded-full p-0',
'hover:bg-surface-hover rounded-full p-0 !min-h-0',
noBg ? '' : 'bg-surface-secondary',
small ? 'w-6 h-6' : 'w-8 h-8',
className ?? ''
@@ -99,7 +99,10 @@
on:click={() => handleConnect(true)}
{id}
wrapperClasses={twMerge(btnWrapperClasses, selected ? 'opacity-100' : '')}
btnClasses={twMerge(small ? 'p-0' : '', 'bg-surface hover:bg-surface')}
btnClasses={twMerge(
small ? 'p-0' : '',
isOpen && selected ? 'bg-surface hover:bg-surface' : ''
)}
>
<Plug size={14} />
</Button>