Skip to content

Commit d28800c

Browse files
committed
fix
1 parent a415fbd commit d28800c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/components/EntityStatusNew/EntityStatus.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ interface EntityStatusLabelProps {
5050
children?: React.ReactNode;
5151
withStatusName?: boolean;
5252
size?: LabelProps['size'];
53+
iconSize?: number;
5354
}
5455

5556
function EntityStatusLabel({
@@ -58,13 +59,14 @@ function EntityStatusLabel({
5859
withStatusName = true,
5960
note,
6061
size = 'm',
62+
iconSize = 14,
6163
}: EntityStatusLabelProps) {
6264
const theme = EFlagToLabelTheme[status];
6365
return (
6466
<ActionTooltip title={EFlagToDescription[status]} disabled={Boolean(note)}>
6567
<Label
6668
theme={theme === 'orange' ? undefined : theme}
67-
icon={<StatusIcon status={status} />}
69+
icon={<StatusIcon size={iconSize} status={status} />}
6870
size={size}
6971
className={b({orange: theme === 'orange'})}
7072
>

src/containers/Cluster/ClusterInfo/utils/utils.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ export const getInfo = (cluster: TClusterInfo, additionalInfo: InfoItem[]) => {
5555
<EntityStatus.Label
5656
withStatusName={false}
5757
status={state as EFlag}
58-
size="s"
58+
size="xs"
5959
key={state}
60+
iconSize={12}
6061
>
6162
{formatNumber(count)}
6263
</EntityStatus.Label>

0 commit comments

Comments
 (0)