Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dc24263

Browse files
committed
:)
1 parent 1cc89f2 commit dc24263

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

site/src/components/Pill/Pill.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ export const Pill: FC<PillProps> = forwardRef<HTMLDivElement, PillProps>(
4545
ref={ref}
4646
css={[
4747
styles.pill,
48+
icon && size === "md" && styles.pillWithIcon,
4849
size === "lg" && styles.pillLg,
49-
icon && styles.pillWithIcon,
50+
icon && size === "lg" && styles.pillLgWithIcon,
5051
typeStyles,
5152
]}
5253
{...divProps}
@@ -89,14 +90,18 @@ const styles = {
8990
}),
9091

9192
pillWithIcon: {
92-
paddingLeft: PILL_ICON_SPACING * 2,
93+
paddingLeft: PILL_ICON_SPACING,
9394
},
9495

9596
pillLg: {
9697
gap: PILL_ICON_SPACING * 2,
9798
padding: "14px 16px",
9899
},
99100

101+
pillLgWithIcon: {
102+
paddingLeft: PILL_ICON_SPACING * 2,
103+
},
104+
100105
spinner: (theme) => ({
101106
color: theme.experimental.l1.text,
102107
// It is necessary to align it with the MUI Icons internal padding

site/src/modules/provisioners/ProvisionerTag.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ export const ProvisionerTag: FC<ProvisionerTagProps> = ({
3636
onDelete,
3737
}) => {
3838
const { valid, value: boolValue } = parseBool(tagValue);
39-
const kv = `${tagName}: ${tagValue}`;
39+
const kv = (
40+
<>
41+
<span css={{ fontWeight: 600 }}>{tagName}</span> <span>{tagValue}</span>
42+
</>
43+
);
4044
const content = onDelete ? (
4145
<>
4246
{kv}

0 commit comments

Comments
 (0)