diff --git a/frontend/src/components/TagLink.tsx b/frontend/src/components/TagLink.tsx index a1f5c5d..ede6088 100644 --- a/frontend/src/components/TagLink.tsx +++ b/frontend/src/components/TagLink.tsx @@ -43,14 +43,18 @@ const TagLink: FC = ({ tag, spanClass, `hover:text-${ TAG_COLOUR[tag.category] }-${ LIGHT_COLOUR_SHADE - 200 }`, `dark:hover:text-${ TAG_COLOUR[tag.category] }-${ DARK_COLOUR_SHADE - 200 }`) - const textClass = 'group inline-block min-w-0 max-w-full align-bottom' + const textClass = 'group min-w-0 max-w-full overflow-hidden align-bottom' + const rootClass = + 'inline-flex min-w-0 max-w-full flex-nowrap items-stretch align-baseline gap-x-1 md:items-baseline' + const markerWrapClass = 'shrink-0 self-start md:self-auto' + const countClass = 'shrink-0 self-end md:self-auto' const textTitle = title ?? (tag.matchedAlias == null ? tag.name : `${ tag.matchedAlias } → ${ tag.name }`) return ( - <> + {(linkFlg && withWiki) && ( - + {(tag.materialId != null || tag.hasWiki || tag.hasDeerjikists) ? ( tag.materialId == null && !(tag.hasDeerjikists) @@ -117,7 +121,7 @@ const TagLink: FC = ({ tag, {...props}> - <> → + )} {linkFlg ? ( @@ -136,8 +140,8 @@ const TagLink: FC = ({ tag, )} {withCount && ( - {tag.postCount})} - ) + {tag.postCount})} + ) } export default TagLink