Skip to content

Commit 44a351d

Browse files
committed
fix: add spacing around "/" and graysacale in check names
Fixes #2189
1 parent d8b3ab7 commit 44a351d

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/components/Canary/renderers.tsx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,25 @@ export function CanaryCheckName({
131131
title,
132132
isDeleted
133133
}: CanaryCheckNameProps) {
134+
const hasSlash = title.includes("/");
135+
136+
if (hasSlash) {
137+
const parts = title.split("/");
138+
return (
139+
<>
140+
{icon && <Icon name={icon} className="h-6 w-auto" />}
141+
<span className="pl-1 text-sm text-gray-500">{parts[0]} </span>
142+
<span className="text-light px-0.5 text-gray-500">/</span>
143+
<span className="text-sm">{parts[1]}</span>
144+
{isDeleted && <TbTrash />}
145+
</>
146+
);
147+
}
148+
134149
return (
135150
<>
136151
{icon && <Icon name={icon} className="h-6 w-auto" />}
137-
<span className="pl-1 text-sm">{title}</span> {isDeleted && <TbTrash />}
152+
<span className="pl-1 text-sm">{title} </span> {isDeleted && <TbTrash />}
138153
</>
139154
);
140155
}

0 commit comments

Comments
 (0)