Skip to content

Commit d6c6a4c

Browse files
authored
fix(EntityStatus): set minimum container width (#1494)
1 parent a36d40c commit d6c6a4c

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

src/components/EntityStatus/EntityStatus.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
display: inline-flex;
77
align-items: center;
88

9+
min-width: 90px;
910
max-width: 100%;
1011
height: 100%;
1112

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)