fix(frontend): reset colour and change size of member card links

This commit is contained in:
sam 2024-09-29 20:37:30 +02:00
parent 4514216405
commit 3f0a94af3d
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
2 changed files with 3 additions and 1 deletions

View file

@ -47,7 +47,7 @@ export default function MemberCard({ user, member }: { user: PartialUser; member
/> />
</Link> </Link>
<p className="m-2"> <p className="m-2">
<Link to={`/@${user.username}/${member.name}`}> <Link to={`/@${user.username}/${member.name}`} className="text-reset fs-5 text-break">
{member.display_name ?? member.name} {member.display_name ?? member.name}
{member.unlisted === true && ( {member.unlisted === true && (
<> <>

View file

@ -56,12 +56,14 @@ export default function UserPage() {
<Pagination className="justify-content-center"> <Pagination className="justify-content-center">
<Pagination.Prev <Pagination.Prev
as={Link} as={Link}
// @ts-expect-error using as=Link causes an error here, even though it runs completely fine
to={`/@${user.username}?page=${currentPage - 1}`} to={`/@${user.username}?page=${currentPage - 1}`}
disabled={currentPage === 0} disabled={currentPage === 0}
/> />
{paginationItems} {paginationItems}
<Pagination.Next <Pagination.Next
as={Link} as={Link}
// @ts-expect-error using as=Link causes an error here, even though it runs completely fine
to={`/@${user.username}?page=${currentPage + 1}`} to={`/@${user.username}?page=${currentPage + 1}`}
disabled={currentPage === pageCount - 1} disabled={currentPage === pageCount - 1}
/> />