This commit is contained in:
yohlo
2026-07-14 00:39:38 -07:00
parent d3809b5805
commit e8b7647f3d
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -7,6 +7,7 @@ interface GlitchAvatarProps {
glitchSrc?: string;
size?: number;
radius?: string | number;
withBorder?: boolean;
children?: React.ReactNode;
}
@@ -21,6 +22,7 @@ const GlitchAvatar = ({
glitchSrc,
size = 35,
radius = "md",
withBorder = true,
children,
}: GlitchAvatarProps) => {
const [showGlitch, setShowGlitch] = useState(false);
@@ -89,7 +91,9 @@ const GlitchAvatar = ({
position: "relative",
width: "fit-content",
padding: FRAME_PADDING,
border: "1px solid var(--mantine-color-default-border)",
border: withBorder
? "1px solid var(--mantine-color-default-border)"
: "1px solid transparent",
borderRadius: `calc(${innerRadius} + ${FRAME_PADDING}px)`,
}}
>
+1 -1
View File
@@ -28,7 +28,6 @@ const Layout: React.FC<PropsWithChildren> = ({ children }) => {
>
<Paper
shadow='md'
withBorder
p='md'
w='100%'
maw='375px'
@@ -49,6 +48,7 @@ const Layout: React.FC<PropsWithChildren> = ({ children }) => {
}
radius="md"
size={250}
withBorder={false}
>
<TrophyIcon size={32} />
</GlitchAvatar>