mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: use 2 characters on <Avatar /> fallback (#22106)
This commit is contained in:
@@ -83,7 +83,7 @@ export const Avatar: React.FC<AvatarProps> = ({
|
||||
/>
|
||||
{fallback && (
|
||||
<AvatarPrimitive.Fallback className="flex h-full w-full items-center justify-center rounded-full">
|
||||
{fallback.charAt(0).toUpperCase()}
|
||||
{fallback.slice(0, 2).toUpperCase()}
|
||||
</AvatarPrimitive.Fallback>
|
||||
)}
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user