Skip to content

Commit 95ccc38

Browse files
committed
polish gitstars styles
1 parent 293151e commit 95ccc38

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/components/GitStars.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,23 @@ const GitStars = ({ gitHubRepo, hideStars, ...props }: GitStarsProps) => {
2525

2626
return (
2727
<BaseLink
28-
className="text-decoration-none ms-auto"
28+
className="ms-auto text-body no-underline hover:underline"
2929
href={gitHubRepo.url}
3030
hideArrow
3131
{...props}
3232
>
33-
<Flex className="rounded border bg-background-medium no-underline hover:fill-primary hover:shadow-table-item-box-hover">
33+
<Flex className="items-stretch overflow-hidden rounded bg-background-medium">
3434
{hideStars ? (
3535
<FaGithub className="m-1 text-2xl" />
3636
) : (
3737
<>
38-
<Center className="mx-1.5 w-9 justify-between text-sm">
39-
<FaGithub className="text-2xl" />
38+
<Center className="mx-1.5 w-9 justify-between text-2xl">
39+
<FaGithub />
4040
<Emoji text=":star:" />
4141
</Center>
42-
<p className="my-0 bg-background-medium px-1.5 text-sm">
43-
{starsString}
44-
</p>
42+
<Flex className="items-center bg-background-highlight px-1.5">
43+
<p className="my-0 text-xs text-body">{starsString}</p>
44+
</Flex>
4545
</>
4646
)}
4747
</Flex>

0 commit comments

Comments
 (0)