Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(core): adjust setting sidebar's workspace avatar (#6785)

CatsJuicef02a16513ce9
diff --git a/packages/frontend/core/src/components/affine/setting-modal/setting-sidebar/index.tsx b/packages/frontend/core/src/components/affine/setting-modal/setting-sidebar/index.tsx
index 01a311af9f..78ef0b83a2 100644
--- a/packages/frontend/core/src/components/affine/setting-modal/setting-sidebar/index.tsx
+++ b/packages/frontend/core/src/components/affine/setting-modal/setting-sidebar/index.tsx
@@ -247,6 +247,7 @@ const subTabConfigs = [
title: keyof ReturnType<typeof useAFFiNEI18N>;
}[];
+const avatarImageProps = { style: { borderRadius: 2 } };
const WorkspaceListItem = ({
activeSubTab,
meta,
@@ -313,13 +314,16 @@ const WorkspaceListItem = ({
data-testid="workspace-list-item"
>
<Avatar
- size={14}
+ size={16}
url={avatarUrl}
name={name}
colorfulFallback
style={{
marginRight: '10px',
}}
+ imageProps={avatarImageProps}
+ fallbackProps={avatarImageProps}
+ hoverWrapperProps={avatarImageProps}
/>
<span className="setting-name">{name}</span>
{isCurrent ? (