Skip to content

Commit

Permalink
fix: tooltip style
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed May 17, 2024
1 parent 63bea7d commit ab0ab97
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/ui/float-popover/FloatPopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -270,16 +270,15 @@ const RealFloatPopover = function FloatPopover<T extends {}>(
role={type === 'tooltip' ? 'tooltip' : 'dialog'}
className={clsxm(
!headless && [
'shadow-out-sm focus:!shadow-out-sm focus-visible:!shadow-out-sm',
'rounded-xl border border-zinc-400/20 p-4 shadow-lg outline-none backdrop-blur-lg dark:border-zinc-500/30',
'rounded-xl border border-zinc-400/20 p-4 outline-none backdrop-blur-lg dark:border-zinc-500/30',
'bg-zinc-50/80 dark:bg-neutral-900/80',
],

'relative z-[2]',

type === 'tooltip'
? `max-w-[25rem] break-all rounded-xl px-4 py-2 shadow-sm`
: '',
? `shadow-out-sm max-w-[25rem] break-all rounded-xl px-4 py-2`
: 'shadow-lg',
popoverClassNames,
)}
ref={refs.setFloating}
Expand Down

0 comments on commit ab0ab97

Please sign in to comment.