このコミットが含まれているのは:
2026-06-30 23:06:32 +09:00
コミット dd32c1e774
4個のファイルの変更10行の追加6行の削除
+1 -1
ファイルの表示
@@ -98,4 +98,4 @@ const DraggableDroppableTagRow: FC<Props> = ({ tag, nestLevel, pathKey, parentTa
</div>) </div>)
} }
export default DraggableDroppableTagRow export default DraggableDroppableTagRow
+7 -3
ファイルの表示
@@ -34,6 +34,7 @@ const TagLink: FC<Props> = ({ tag,
withCount = true, withCount = true,
className, className,
...props }) => { ...props }) => {
const textWrapClass = '[overflow-wrap:anywhere]'
const spanClass = cn ( const spanClass = cn (
`text-${ TAG_COLOUR[tag.category] }-${ LIGHT_COLOUR_SHADE }`, `text-${ TAG_COLOUR[tag.category] }-${ LIGHT_COLOUR_SHADE }`,
`dark:text-${ TAG_COLOUR[tag.category] }-${ DARK_COLOUR_SHADE }`) `dark:text-${ TAG_COLOUR[tag.category] }-${ DARK_COLOUR_SHADE }`)
@@ -106,7 +107,9 @@ const TagLink: FC<Props> = ({ tag,
</span>)} </span>)}
{tag.matchedAlias != null && ( {tag.matchedAlias != null && (
<> <>
<span className={cn (spanClass, className)} {...props}> <span
className={cn (spanClass, textWrapClass, className)}
{...props}>
{tag.matchedAlias} {tag.matchedAlias}
</span> </span>
<> </> <> </>
@@ -115,12 +118,13 @@ const TagLink: FC<Props> = ({ tag,
? ( ? (
<PrefetchLink <PrefetchLink
to={`/posts?${ (new URLSearchParams ({ tags: tag.name })).toString () }`} to={`/posts?${ (new URLSearchParams ({ tags: tag.name })).toString () }`}
className={cn (linkClass, className)} className={cn (linkClass, textWrapClass, className)}
{...props}> {...props}>
{tag.name} {tag.name}
</PrefetchLink>) </PrefetchLink>)
: ( : (
<span className={cn (spanClass, className)} <span
className={cn (spanClass, textWrapClass, className)}
{...props}> {...props}>
{tag.name} {tag.name}
</span>)} </span>)}
+1 -1
ファイルの表示
@@ -28,4 +28,4 @@ const TagSearchBox: FC<Props> = ({ suggestions, activeIndex, onSelect }) => {
</ul>) </ul>)
} }
export default TagSearchBox export default TagSearchBox
+1 -1
ファイルの表示
@@ -128,4 +128,4 @@ const TagSidebar: FC<Props> = ({ posts, onClick }) => {
</SidebarComponent>) </SidebarComponent>)
} }
export default TagSidebar export default TagSidebar