Skip to content

Commit c29b5be

Browse files
waleedlatif1Sg312
authored andcommitted
fix(ui): constrain tooltip width and remove question mark cursor (#3752)
- Add max-w-[260px] to Tooltip.Content so video previews don't blow out the tooltip size - Replace cursor-help with cursor-default on info icons in settings
1 parent 6337313 commit c29b5be

File tree

2 files changed

+3
-3
lines changed
  • apps/sim
    • app/workspace/[workspaceId]/settings/components/general
    • components/emcn/components/tooltip

2 files changed

+3
-3
lines changed

apps/sim/app/workspace/[workspaceId]/settings/components/general/general.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ export function General() {
380380
<Label htmlFor='auto-connect'>Auto-connect on drop</Label>
381381
<Tooltip.Root>
382382
<Tooltip.Trigger asChild>
383-
<Info className='h-[14px] w-[14px] cursor-help text-[var(--text-muted)]' />
383+
<Info className='h-[14px] w-[14px] cursor-default text-[var(--text-muted)]' />
384384
</Tooltip.Trigger>
385385
<Tooltip.Content side='bottom' align='start'>
386386
<p>Automatically connect blocks when dropped near each other</p>
@@ -404,7 +404,7 @@ export function General() {
404404
<Label htmlFor='error-notifications'>Canvas error notifications</Label>
405405
<Tooltip.Root>
406406
<Tooltip.Trigger asChild>
407-
<Info className='h-[14px] w-[14px] cursor-help text-[var(--text-muted)]' />
407+
<Info className='h-[14px] w-[14px] cursor-default text-[var(--text-muted)]' />
408408
</Tooltip.Trigger>
409409
<Tooltip.Content side='bottom' align='start'>
410410
<p>Show error popups on blocks when a workflow run fails</p>

apps/sim/components/emcn/components/tooltip/tooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const Content = React.forwardRef<
5050
collisionPadding={8}
5151
avoidCollisions={true}
5252
className={cn(
53-
'z-[10000300] rounded-[4px] bg-[#1b1b1b] px-[8px] py-[3.5px] font-base text-white text-xs shadow-sm dark:bg-[#fdfdfd] dark:text-black',
53+
'z-[10000300] max-w-[260px] rounded-[4px] bg-[#1b1b1b] px-[8px] py-[3.5px] font-base text-white text-xs shadow-sm dark:bg-[#fdfdfd] dark:text-black',
5454
className
5555
)}
5656
{...props}

0 commit comments

Comments
 (0)