Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Frontend] UX improvements #706

Merged
merged 2 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.</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
Loading