File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 587587 {:else if href }
588588 <div class =" ml-1 flex h-full items-center border-l border-subtle p-0.5" >
589589 {#if actionTooltip }
590- <Tooltip text ={actionTooltip } right >
590+ <Tooltip
591+ text ={actionTooltip }
592+ right
593+ usePortal
594+ portalOffset ={{ x : 6 }}
595+ >
591596 <Button
592597 variant =" ghost"
593598 size =" xs"
Original file line number Diff line number Diff line change 55 import type { IconName } from ' $lib/holocene/icon' ;
66 import Icon from ' $lib/holocene/icon/icon.svelte' ;
77 import Portal from ' $lib/holocene/portal/portal.svelte' ;
8- import type { PortalPosition } from ' $lib/holocene/portal/types' ;
8+ import type {
9+ PortalOffset ,
10+ PortalPosition ,
11+ } from ' $lib/holocene/portal/types' ;
912 import type { Only } from ' $lib/types/global' ;
1013
1114 const HOVER_HIDE_DELAY_MS = 120 ;
1922 tooltipClass? : string ;
2023 show? : boolean ;
2124 usePortal? : boolean ;
25+ portalOffset? : PortalOffset ;
2226 scrollContainer? : string ;
2327 };
2428
7983 export let tooltipClass = ' ' ;
8084 export let show = false ;
8185 export let usePortal = false ;
86+ export let portalOffset: PortalOffset | undefined = undefined ;
8287 export let scrollContainer: string | undefined = undefined ;
8388
8489 let wrapperElement: HTMLElement | null = null ;
166171
167172 {#if usePortal && wrapperElement }
168173 <Portal
174+ offset ={portalOffset }
169175 anchor ={wrapperElement }
170176 open ={isOpen }
171177 position ={portalPosition }
You can’t perform that action at this time.
0 commit comments