File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,16 @@ interface ReputationCardProps {
32
32
*/
33
33
export default function ReputationCard ( { details = { } } : ReputationCardProps ) : ReactElement {
34
34
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
+ />
37
43
{ 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 " >
39
45
< span className = "block text-base font-medium leading-normal" >
40
46
< Currency value = { details . score } token = "REP" />
41
47
</ span >
You can’t perform that action at this time.
0 commit comments