Skip to content

Commit cde43b7

Browse files
committed
cleanup
1 parent 60c0b9e commit cde43b7

File tree

1 file changed

+14
-8
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/deploy/components/deploy-modal/components/general

1 file changed

+14
-8
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/deploy/components/deploy-modal/components/general/general.tsx

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
ModalContent,
1212
ModalFooter,
1313
ModalHeader,
14+
Tooltip,
1415
} from '@/components/emcn'
1516
import { Skeleton } from '@/components/ui'
1617
import type { WorkflowDeploymentVersionResponse } from '@/lib/workflows/persistence/utils'
@@ -235,14 +236,19 @@ export function GeneralDeploy({
235236
defaultPosition={{ x: 0, y: 0 }}
236237
defaultZoom={0.6}
237238
/>
238-
<button
239-
type='button'
240-
onClick={() => setShowExpandedPreview(true)}
241-
className='absolute top-[8px] right-[8px] z-10 rounded-[4px] bg-[var(--surface-1)] p-[6px] text-[var(--text-secondary)] shadow-sm transition-colors hover:bg-[var(--surface-3)] hover:text-[var(--text-primary)]'
242-
title='Expand preview'
243-
>
244-
<Maximize2 className='h-[14px] w-[14px]' />
245-
</button>
239+
<Tooltip.Root>
240+
<Tooltip.Trigger asChild>
241+
<Button
242+
type='button'
243+
variant='default'
244+
onClick={() => setShowExpandedPreview(true)}
245+
className='absolute top-[8px] right-[8px] z-10 h-[28px] w-[28px] p-0'
246+
>
247+
<Maximize2 className='h-[14px] w-[14px]' />
248+
</Button>
249+
</Tooltip.Trigger>
250+
<Tooltip.Content side='bottom'>Expand preview</Tooltip.Content>
251+
</Tooltip.Root>
246252
</>
247253
) : (
248254
<div className='flex h-full items-center justify-center text-[#8D8D8D] text-[13px]'>

0 commit comments

Comments
 (0)