Virtual whiteboard for sketching hand-drawn like diagrams
Add border to the Avatars (#2428)
Lipisbdb1fb2daec1
diff --git a/src/actions/actionNavigate.tsx b/src/actions/actionNavigate.tsxindex ab0265b4de..c54af14e9a 100644--- a/src/actions/actionNavigate.tsx+++ b/src/actions/actionNavigate.tsx@@ -43,12 +43,13 @@ export const actionGoToCollaborator = register({return null;}- const { background } = getClientColors(clientId);+ const { background, stroke } = getClientColors(clientId);const shortName = getClientInitials(collaborator.username);return (<Avatarcolor={background}+ border={stroke}onClick={() => updateData(collaborator.pointer)}>{shortName}diff --git a/src/components/Avatar.tsx b/src/components/Avatar.tsxindex 1bd50ca565..2b85137077 100644--- a/src/components/Avatar.tsx+++ b/src/components/Avatar.tsx@@ -6,10 +6,15 @@ type AvatarProps = {children: string;onClick: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;color: string;+ border: string;};-export const Avatar = ({ children, color, onClick }: AvatarProps) => (- <div className="Avatar" style={{ background: color }} onClick={onClick}>+export const Avatar = ({ children, color, border, onClick }: AvatarProps) => (+ <div+ className="Avatar"+ style={{ background: color, border: `1px solid ${border}` }}+ onClick={onClick}+ >{children}</div>);