From a9db1b1a13543289aa165318dd5acb95cd93fa62 Mon Sep 17 00:00:00 2001 From: ozdentarikcan Date: Mon, 16 Dec 2024 21:20:39 +0300 Subject: [PATCH 1/2] UX improvements --- frontend/src/routes/profile.tsx | 11 ++++++----- frontend/src/routes/tag.tsx | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/frontend/src/routes/profile.tsx b/frontend/src/routes/profile.tsx index 012a408..f52dd42 100644 --- a/frontend/src/routes/profile.tsx +++ b/frontend/src/routes/profile.tsx @@ -177,7 +177,7 @@ export default function Profile() { ) )} - {profile.followedTags && ( + {profile.followedTags && profile.followedTags.length > 0 ? (
@@ -189,13 +189,14 @@ export default function Profile() { )) .slice(0, 3)} - {profile.followedTags?.length && - profile.followedTags?.length > 3 && ( - + {profile.followedTags?.length - 3} more - )} + {profile.followedTags?.length > 3 && ( + + {profile.followedTags?.length - 3} more + )}
+ ) : ( +
No followed tags to show. Follow tags to personalize your feed.
)}
diff --git a/frontend/src/routes/tag.tsx b/frontend/src/routes/tag.tsx index 8811cbc..d81a16e 100644 --- a/frontend/src/routes/tag.tsx +++ b/frontend/src/routes/tag.tsx @@ -114,7 +114,7 @@ export default function TagPage() { src={tag?.logoImage || "https://placehold.co/400x300"} alt={`${tag.name} logo`} title={`alt:The logo image of ${tag.name}`} - className="h-48 w-full rounded-3xl object-contain lg:h-96" + className="h-20 w-full rounded-3xl object-contain lg:h-40" /> )}
From a04a34bf2adb07d0c3adc9efd236a88ca963eae8 Mon Sep 17 00:00:00 2001 From: ozdentarikcan Date: Mon, 16 Dec 2024 21:55:17 +0300 Subject: [PATCH 2/2] Edit no tag message --- frontend/src/routes/profile.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/routes/profile.tsx b/frontend/src/routes/profile.tsx index f52dd42..6ec03a1 100644 --- a/frontend/src/routes/profile.tsx +++ b/frontend/src/routes/profile.tsx @@ -196,7 +196,7 @@ export default function Profile() {
) : ( -
No followed tags to show. Follow tags to personalize your feed.
+
No followed tags to show.
)}