fix(sqllab): show schema refresh icon only on hover (#39367)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
(cherry picked from commit ddcb9be9a7)
This commit is contained in:
Michael S. Molina
2026-04-15 11:37:33 -03:00
committed by Michael S. Molina
parent 9e313ba82f
commit 18a8f6cb04

View File

@@ -234,17 +234,19 @@ const TreeNodeRenderer: React.FC<TreeNodeRendererProps> = ({
</Typography.Text>
{identifier === 'schema' && (
<div className="side-action-container" role="menu">
<RefreshLabel
onClick={e => {
e.stopPropagation();
handleRefreshTables({
dbId: Number(_dbId),
catalog,
schema,
});
}}
tooltipContent={t('Force refresh table list')}
/>
<div className="action-hover">
<RefreshLabel
onClick={e => {
e.stopPropagation();
handleRefreshTables({
dbId: Number(_dbId),
catalog,
schema,
});
}}
tooltipContent={t('Force refresh table list')}
/>
</div>
</div>
)}
{identifier === 'table' &&