We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a073d2a commit c4d6f84Copy full SHA for c4d6f84
packages/headless/src/components/tooltip/tooltip.tsx
@@ -40,6 +40,7 @@ export const Tooltip = component$(
40
return (
41
<div>
42
<div
43
+ style={`width: max-content;`}
44
ref={slotted}
45
onMouseEnter$={() => showTooltip()}
46
onMouseLeave$={() => hideTooltip()}
@@ -55,9 +56,10 @@ export const Tooltip = component$(
55
56
{...props}
57
style={`${
58
isTooltipVisible.value ? 'display: block' : 'display: none'
- };
59
+ };
60
+ width: max-content;
61
position: absolute;
- left: ${xSignal.value}px;
62
+ left: ${xSignal.value}px;
63
top: ${ySignal.value}px;`}
64
>
65
{message}
0 commit comments