You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2026/04/15 19:41:59 UTC

(superset) 02/10: fix(sqllab): show schema refresh icon only on hover (#39367)

This is an automated email from the ASF dual-hosted git repository.

michaelsmolina pushed a commit to branch 6.1
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 18a8f6cb047f966f4d50850aec330aa72c65b9d0
Author: Michael S. Molina <70...@users.noreply.github.com>
AuthorDate: Wed Apr 15 11:37:33 2026 -0300

    fix(sqllab): show schema refresh icon only on hover (#39367)
    
    Co-authored-by: Claude Sonnet 4.6 <no...@anthropic.com>
    (cherry picked from commit ddcb9be9a77a3315c90d6714dbbbd3259e6727bc)
---
 .../TableExploreTree/TreeNodeRenderer.tsx          | 24 ++++++++++++----------
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/superset-frontend/src/SqlLab/components/TableExploreTree/TreeNodeRenderer.tsx b/superset-frontend/src/SqlLab/components/TableExploreTree/TreeNodeRenderer.tsx
index b2bf7e5b9ab..ba562348738 100644
--- a/superset-frontend/src/SqlLab/components/TableExploreTree/TreeNodeRenderer.tsx
+++ b/superset-frontend/src/SqlLab/components/TableExploreTree/TreeNodeRenderer.tsx
@@ -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' &&