Skip to content

Commit 7ea2c60

Browse files
committed
fix
1 parent ec47667 commit 7ea2c60

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/components/Ui/Infobox/Infobox.module.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
margin-right: 1rem;
1818
}
1919

20+
.icon-sm {
21+
width: 1.25rem;
22+
height: 1.25rem;
23+
}
24+
2025
.content {
2126
flex-grow: 1;
2227
padding-right: 0.5rem;
@@ -29,7 +34,7 @@
2934
}
3035

3136
.size-sm {
32-
padding: 0.5rem 0.75rem;
37+
padding: 0.5rem 0.875rem;
3338
font-size: 0.75rem;
3439
border-radius: 0.5rem;
3540
}

src/components/Ui/Infobox/Infobox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const Infobox: React.FC<LabelProps> = ({
5252

5353
return (
5454
<div className={infoboxClasses} id={id}>
55-
{iconName && <Icon name={iconName} className={styles.icon} />}
55+
{iconName && <Icon name={iconName} className={cx(styles.icon, { [styles['icon-sm']]: size === 'sm' })} />}
5656
<div className={styles.content}>{children}</div>
5757
</div>
5858
);

0 commit comments

Comments
 (0)