mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-07 08:02:40 +00:00
Fix animated button opacity nit (#7114)
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
variant="default"
|
||||
btnClasses={twMerge(
|
||||
connecting ? 'text-accent' : '',
|
||||
'bg-surface group/plug-btn overflow-clip flex p-0'
|
||||
'bg-surface hover:bg-surface group/plug-btn overflow-clip flex p-0'
|
||||
)}
|
||||
on:click
|
||||
{...id ? { id } : {}}
|
||||
|
||||
@@ -528,7 +528,7 @@
|
||||
{pickableProperties}
|
||||
{argName}
|
||||
btnClass={twMerge(
|
||||
'h-6 min-w-8 px-2',
|
||||
'h-7 min-w-8 px-2',
|
||||
'group-hover:opacity-100 transition-opacity',
|
||||
!connecting ? 'opacity-0' : ''
|
||||
)}
|
||||
@@ -538,7 +538,7 @@
|
||||
{#if propPickerWrapperContext}
|
||||
<FlowPlugConnect
|
||||
wrapperClasses={twMerge(
|
||||
connecting ? 'h-5 w-7' : 'h-6 w-8',
|
||||
connecting ? 'h-6 w-7' : 'h-7 w-8',
|
||||
'group-hover:opacity-100 transition-opacity p-0',
|
||||
!connecting ? 'opacity-0' : ''
|
||||
)}
|
||||
|
||||
@@ -197,7 +197,6 @@
|
||||
id="schema-plug-{key}"
|
||||
/>
|
||||
<ToggleButtonGroup
|
||||
class="h-6"
|
||||
bind:selected={componentInput.type}
|
||||
on:selected={(e) => {
|
||||
if (
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
on:click={() => handleConnect(true)}
|
||||
{id}
|
||||
wrapperClasses={twMerge(btnWrapperClasses, selected ? 'opacity-100' : '')}
|
||||
btnClasses={small ? 'p-0' : ''}
|
||||
btnClasses={twMerge(small ? 'p-0' : '', 'bg-surface hover:bg-surface')}
|
||||
>
|
||||
<Plug size={14} />
|
||||
</Button>
|
||||
|
||||
@@ -268,6 +268,7 @@
|
||||
variant="border"
|
||||
wrapperClasses="p-0 whitespace-nowrap w-fit"
|
||||
btnClasses={twMerge(
|
||||
'hover:bg-surface',
|
||||
'font-mono h-4 py-1 text-2xs',
|
||||
'font-thin px-1 rounded-[0.275rem]',
|
||||
metaData ? 'rounded-r-none border-r-0.5' : ''
|
||||
|
||||
Reference in New Issue
Block a user