Skip to content

Commit 79b1d88

Browse files
Merge pull request #706 from bounswe/frontend/feature/ux-improvements
[Frontend] UX improvements
2 parents 002be47 + a04a34b commit 79b1d88

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

frontend/src/routes/profile.tsx

+6-5
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export default function Profile() {
177177
)
178178
)}
179179
</div>
180-
{profile.followedTags && (
180+
{profile.followedTags && profile.followedTags.length > 0 ? (
181181
<div className="flex flex-col">
182182
<div className="flex flex-wrap gap-2">
183183
<span className="flex items-center gap-2">
@@ -189,13 +189,14 @@ export default function Profile() {
189189
</Link>
190190
))
191191
.slice(0, 3)}
192-
{profile.followedTags?.length &&
193-
profile.followedTags?.length > 3 && (
194-
<span>+ {profile.followedTags?.length - 3} more</span>
195-
)}
192+
{profile.followedTags?.length > 3 && (
193+
<span>+ {profile.followedTags?.length - 3} more</span>
194+
)}
196195
</span>
197196
</div>
198197
</div>
198+
) : (
199+
<div>No followed tags to show.</div>
199200
)}
200201
</div>
201202
<div className="mt-4 flex flex-col gap-4 px-4 py-2">

frontend/src/routes/tag.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export default function TagPage() {
114114
src={tag?.logoImage || "https://placehold.co/400x300"}
115115
alt={`${tag.name} logo`}
116116
title={`alt:The logo image of ${tag.name}`}
117-
className="h-48 w-full rounded-3xl object-contain lg:h-96"
117+
className="h-20 w-full rounded-3xl object-contain lg:h-40"
118118
/>
119119
)}
120120
<div className="mb-4 flex items-center justify-between px-1">

0 commit comments

Comments
 (0)