Skip to content

Commit 456dce8

Browse files
authored
Merge pull request #1099 from dacadeorg/fix/spacing-reputation-card
fix: create a linkOverlay for reputation card and fix spacing
2 parents be4e60e + 3d5a21d commit 456dce8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/components/cards/Reputation.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,16 @@ interface ReputationCardProps {
3232
*/
3333
export default function ReputationCard({ details = {} }: ReputationCardProps): ReactElement {
3434
return (
35-
<div className="flex space-x-3 text-left hover:bg-gray-50 pb-3 -mx-5 px-5">
36-
<Avatar icon={details.community?.icon} color={details.community?.colors?.cover?.background || details.community?.colors.primary} size="medium" shape="rounded" />
35+
<div className="flex space-x-3 text-left hover:bg-gray-50 py-3 -mx-5 px-5 relative">
36+
<Avatar
37+
icon={details.community?.icon}
38+
color={details.community?.colors?.cover?.background || details.community?.colors.primary}
39+
size="medium"
40+
shape="rounded"
41+
useLink={false}
42+
/>
3743
{details?.score && (
38-
<Link href={details?.community ? `/communities/${details.community.slug}` : ""} className="pt-1">
44+
<Link href={details?.community ? `/communities/${details.community.slug}` : ""} className="pt-1 before:content-[''] before:absolute before:top-0 before:left-0 before:w-full before:h-full before:z-0 before:block">
3945
<span className="block text-base font-medium leading-normal">
4046
<Currency value={details.score} token="REP" />
4147
</span>

0 commit comments

Comments
 (0)