Skip to content

Commit b0f2d6a

Browse files
committed
Fix for displaying the Maximise tooltip
1 parent bb909d0 commit b0f2d6a

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

apps/webapp/app/components/metrics/QueryWidget.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -178,15 +178,16 @@ export function QueryWidget({
178178
<div className="flex items-center gap-1.5">{title}</div>
179179
<Card.Accessory>
180180
<SimpleTooltip
181-
asChild
182181
button={
183-
<Button
184-
variant="minimal/small"
185-
LeadingIcon={Maximize2}
186-
leadingIconClassName="text-text-bright"
187-
onClick={() => setIsFullscreen(true)}
188-
className="!px-1 opacity-0 transition-opacity group-hover:opacity-100"
189-
/>
182+
<span className="opacity-0 transition-opacity group-hover:opacity-100">
183+
<Button
184+
variant="minimal/small"
185+
LeadingIcon={Maximize2}
186+
leadingIconClassName="text-text-bright"
187+
onClick={() => setIsFullscreen(true)}
188+
className="!px-1"
189+
/>
190+
</span>
190191
}
191192
content="Maximize"
192193
/>

0 commit comments

Comments
 (0)