fix(sql-lab): use consistent icon size for schema refresh button (#41105)

This commit is contained in:
yousoph
2026-06-22 10:30:23 -07:00
committed by GitHub
parent 403e11e2ef
commit 2a7fadbd08

View File

@@ -20,7 +20,6 @@ import { css, styled, useTheme } from '@apache-superset/core/theme';
import { t } from '@apache-superset/core/translation';
import type { NodeRendererProps } from 'react-arborist';
import { Icons, Typography } from '@superset-ui/core/components';
import RefreshLabel from '@superset-ui/core/components/RefreshLabel';
import ColumnElement from 'src/SqlLab/components/ColumnElement';
import { ActionButton } from '@superset-ui/core/components/ActionButton';
import copyTextToClipboard from 'src/utils/copy';
@@ -260,16 +259,17 @@ const TreeNodeRenderer: React.FC<TreeNodeRendererProps> = ({
</div>
)}
<div className="action-hover">
<RefreshLabel
onClick={e => {
e.stopPropagation();
<ActionButton
label={`refresh-schema-${schema}`}
tooltip={t('Force refresh table list')}
icon={<Icons.SyncOutlined iconSize="m" />}
onClick={() => {
handleRefreshTables({
dbId: Number(_dbId),
catalog,
schema,
});
}}
tooltipContent={t('Force refresh table list')}
/>
<ActionButton
label={