File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments