Skip to content

Commit 6ac735c

Browse files
committed
Only render the status tooltip on hover
1 parent 9b1ce0b commit 6ac735c

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

apps/webapp/app/components/code/TSQLResultsTable.tsx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,17 @@ function CellValue({
178178
? runStatusFromFriendlyTitle(value)
179179
: undefined;
180180
if (status) {
181-
return (
182-
<SimpleTooltip
183-
content={descriptionForTaskRunStatus(status)}
184-
disableHoverableContent
185-
button={<TaskRunStatusCombo status={status} />}
186-
/>
187-
);
181+
if (hovered) {
182+
return (
183+
<SimpleTooltip
184+
content={descriptionForTaskRunStatus(status)}
185+
disableHoverableContent
186+
button={<TaskRunStatusCombo status={status} />}
187+
/>
188+
);
189+
}
190+
191+
return <TaskRunStatusCombo status={status} />;
188192
}
189193
break;
190194
}

0 commit comments

Comments
 (0)