From 61d7e6f44ef3e763e14f1d6a18d8644bb3fa408c Mon Sep 17 00:00:00 2001 From: miteruzo Date: Sun, 18 Oct 2026 02:31:03 +0900 Subject: [PATCH] #428 --- frontend/src/components/SortHeader.tsx | 4 +- frontend/src/pages/tags/TagListPage.tsx | 59 ++++++++++++------------- 2 files changed, 30 insertions(+), 33 deletions(-) diff --git a/frontend/src/components/SortHeader.tsx b/frontend/src/components/SortHeader.tsx index 2a9bf3f..c3797ce 100644 --- a/frontend/src/components/SortHeader.tsx +++ b/frontend/src/components/SortHeader.tsx @@ -25,9 +25,9 @@ export default ({ by, label, currentOrder, defaultDirection } - + {label} - {by === fld && (dir === 'asc' ? ' ▲' : ' ▼')} + {by === fld && {dir === 'asc' ? '▲' : '▼'}} ) } diff --git a/frontend/src/pages/tags/TagListPage.tsx b/frontend/src/pages/tags/TagListPage.tsx index ad7d512..b710419 100644 --- a/frontend/src/pages/tags/TagListPage.tsx +++ b/frontend/src/pages/tags/TagListPage.tsx @@ -217,7 +217,7 @@ const TagListPage: FC = () => { }), [page, totalPages, location.search])) return ( - + {message ('title').text} | {SITE_TITLE} @@ -357,22 +357,11 @@ const TagListPage: FC = () => { {isError &&

{label ('common:fetchError')}

} {loading ? label ('common:loading') : (results.length > 0 ? ( -
-
- - - - - - - - - - - - - - +
+
+
+ - +
@@ -428,12 +417,14 @@ const TagListPage: FC = () => { key={`${ row.category }:${ row.id }`} className="even:bg-gray-100 dark:even:bg-gray-700"> - +
+ +
{row.postCount} @@ -442,15 +433,21 @@ const TagListPage: FC = () => { {row.deprecatedAt ? label ('common:states.deprecated') : ''} {row.aliases.join (' ')} - {row.parents.map (t => ( - - - ))} +
+ {row.aliases.join (' ')} +
+
+
+ {row.parents.map (t => ( + + + ))} +