You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ms...@apache.org on 2025/06/11 12:04:00 UTC
(superset) branch master updated: fix(explore): add gap to the "Cached" button (#33717)
This is an automated email from the ASF dual-hosted git repository.
msyavuz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new bce3d4f19e fix(explore): add gap to the "Cached" button (#33717)
bce3d4f19e is described below
commit bce3d4f19ecef87ccfe16ce2fa0c5a65719fece3
Author: Vladislav Korenkov <73...@users.noreply.github.com>
AuthorDate: Wed Jun 11 22:03:53 2025 +1000
fix(explore): add gap to the "Cached" button (#33717)
---
superset-frontend/src/components/CachedLabel/index.tsx | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/superset-frontend/src/components/CachedLabel/index.tsx b/superset-frontend/src/components/CachedLabel/index.tsx
index 9fd35b4154..3ac26c2f5e 100644
--- a/superset-frontend/src/components/CachedLabel/index.tsx
+++ b/superset-frontend/src/components/CachedLabel/index.tsx
@@ -18,10 +18,11 @@
*/
import { useState, MouseEventHandler, FC } from 'react';
-import { t } from '@superset-ui/core';
+import { css, t } from '@superset-ui/core';
import Label from 'src/components/Label';
import { Tooltip } from 'src/components/Tooltip';
import { TooltipContent } from './TooltipContent';
+import { Icons } from '../Icons';
export interface CacheLabelProps {
onClick?: MouseEventHandler<HTMLElement>;
@@ -44,14 +45,16 @@ const CacheLabel: FC<CacheLabelProps> = ({
>
<Label
className={`${className}`}
+ css={theme => css`
+ gap: ${theme.gridUnit * 0.5}px;
+ `}
type={labelType}
onClick={onClick}
onMouseOver={() => setHovered(true)}
onMouseOut={() => setHovered(false)}
>
- {/* TODO: Remove fa-icon */}
- {/* eslint-disable-next-line icons/no-fa-icons-usage */}
- {t('Cached')} <i className="fa fa-refresh" />
+ {t('Cached')}
+ <Icons.SyncOutlined iconSize="m" />
</Label>
</Tooltip>
);