Skip to content

Commit

Permalink
UX improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ozdentarikcan committed Dec 16, 2024
1 parent 81c6965 commit a9db1b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions frontend/src/routes/profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export default function Profile() {
)
)}
</div>
{profile.followedTags && (
{profile.followedTags && profile.followedTags.length > 0 ? (
<div className="flex flex-col">
<div className="flex flex-wrap gap-2">
<span className="flex items-center gap-2">
Expand All @@ -189,13 +189,14 @@ export default function Profile() {
</Link>
))
.slice(0, 3)}
{profile.followedTags?.length &&
profile.followedTags?.length > 3 && (
<span>+ {profile.followedTags?.length - 3} more</span>
)}
{profile.followedTags?.length > 3 && (
<span>+ {profile.followedTags?.length - 3} more</span>
)}
</span>
</div>
</div>
) : (
<div>No followed tags to show. Follow tags to personalize your feed.</div>
)}
</div>
<div className="mt-4 flex flex-col gap-4 px-4 py-2">
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
/>
)}
<div className="mb-4 flex items-center justify-between px-1">
Expand Down

0 comments on commit a9db1b1

Please sign in to comment.