Skip to content

Commit fec24c3

Browse files
committed
fix: monitoring button size
1 parent ba8cac7 commit fec24c3

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/components/MonitoringButton/MonitoringButton.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type {ButtonSize} from '@gravity-ui/uikit';
12
import {Button, Icon} from '@gravity-ui/uikit';
23

34
import {cn} from '../../utils/cn';
@@ -12,15 +13,21 @@ interface MonitoringButtonProps {
1213
className?: string;
1314
visible?: boolean;
1415
href: string;
16+
size?: ButtonSize;
1517
}
1618

17-
export function MonitoringButton({href, visible = false, className}: MonitoringButtonProps) {
19+
export function MonitoringButton({
20+
href,
21+
visible = false,
22+
className,
23+
size = 's',
24+
}: MonitoringButtonProps) {
1825
return (
1926
<Button
2027
href={href}
2128
target="_blank"
2229
className={b({visible}, className)}
23-
size="s"
30+
size={size}
2431
title="Monitoring dashboard"
2532
>
2633
<Icon data={monitoringIcon} />

src/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function ExtendedTenant({
2525
dbName,
2626
dbType,
2727
});
28-
return href ? <MonitoringButton href={href} visible={true} /> : null;
28+
return href ? <MonitoringButton href={href} visible={true} size="xs" /> : null;
2929
}
3030

3131
return null;

0 commit comments

Comments
 (0)