fix(server): default workspace avatar size (#10229)

This commit is contained in:
forehalo
2025-02-18 03:53:59 +00:00
parent fdddaf651f
commit a303455ded
4 changed files with 223 additions and 54 deletions

View File

@@ -7,4 +7,5 @@ export const TEST_USER: UserProps = {
export const TEST_WORKSPACE: WorkspaceProps = {
name: 'Test Workspace',
avatar: 'https://app.affine.pro/favicon-192.png',
};

View File

@@ -11,8 +11,8 @@ export const Workspace = (props: WorkspaceProps) => {
<AvatarWithName
name={props.name}
img={props.avatar}
width={`${props.size}px`}
height={`${props.size}px`}
width={`${props.size ?? 20}px`}
height={`${props.size ?? 20}px`}
/>
);
};