Skip to content

Commit 2e43d5f

Browse files
committed
chore: finish AvatarCard
1 parent f7cffd1 commit 2e43d5f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

site/src/components/AvatarCard/AvatarCard.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { type ReactNode } from "react";
22
import { Avatar } from "components/Avatar/Avatar";
33
import { type CSSObject, useTheme } from "@emotion/react";
4+
import { colors } from "theme/colors";
45

56
type AvatarCardProps = {
67
header: string;
@@ -38,7 +39,7 @@ export function AvatarCard({
3839
css={[
3940
theme.typography.body1 as CSSObject,
4041
{
41-
lineHeight: 1.5,
42+
lineHeight: 1.4,
4243
margin: 0,
4344
overflow: "hidden",
4445
whiteSpace: "nowrap",
@@ -61,7 +62,12 @@ export function AvatarCard({
6162
)}
6263
</div>
6364

64-
<Avatar src={imgUrl} alt={altText} colorScheme="darken">
65+
<Avatar
66+
src={imgUrl}
67+
alt={altText}
68+
size="md"
69+
css={{ backgroundColor: colors.gray[7] }}
70+
>
6571
{header}
6672
</Avatar>
6773
</article>

0 commit comments

Comments
 (0)