@@ -33,6 +37,7 @@ export const WorkspaceAvatar = (props: IWorkspaceAvatar) => {
) : (
{
borderRadius: '50%',
textAlign: 'center',
lineHeight: size + 'px',
+ display: 'inline-block',
+ verticalAlign: 'middle',
}}
>
{(props.name || 'AFFiNE').substring(0, 1)}
diff --git a/packages/app/src/components/workspace-avatar/WorkspaceUnitAvatar.tsx b/packages/app/src/components/workspace-avatar/WorkspaceUnitAvatar.tsx
index 4144d9645d..bdb8431e2c 100644
--- a/packages/app/src/components/workspace-avatar/WorkspaceUnitAvatar.tsx
+++ b/packages/app/src/components/workspace-avatar/WorkspaceUnitAvatar.tsx
@@ -24,10 +24,12 @@ export const WorkspaceUnitAvatar = ({
size = 20,
name,
workspaceUnit,
+ style,
}: {
size?: number;
name?: string;
workspaceUnit?: WorkspaceUnit | null;
+ style?: React.CSSProperties;
}) => {
const avatarUrl = useAvatar(workspaceUnit || undefined);
return (
@@ -35,6 +37,7 @@ export const WorkspaceUnitAvatar = ({
size={size}
name={name || workspaceUnit?.name || ''}
avatar={avatarUrl}
+ style={style}
/>
);
};
diff --git a/packages/app/src/components/workspace-setting/SyncPage.tsx b/packages/app/src/components/workspace-setting/SyncPage.tsx
index c9d0523f6e..6969461a38 100644
--- a/packages/app/src/components/workspace-setting/SyncPage.tsx
+++ b/packages/app/src/components/workspace-setting/SyncPage.tsx
@@ -1,6 +1,6 @@
import {
+ StyleAsync,
StyledPublishContent,
- StyledPublishCopyContainer,
StyledPublishExplanation,
StyledWorkspaceName,
StyledWorkspaceType,
@@ -24,19 +24,18 @@ export const SyncPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
size={32}
name={workspace.name}
workspaceUnit={workspace}
+ style={{ marginRight: '12px' }}
/>
-
- {workspace.name}
-
+ {workspace.name};
is a Local Workspace.
All data is stored on the current device. You can enable AFFiNE
Cloud for this workspace to keep data in sync with the cloud.
-
+
-
+
>
) : (
<>
@@ -47,7 +46,7 @@ export const SyncPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
the AFFiNE
-
+
-
+
>
)}
diff --git a/packages/app/src/components/workspace-setting/member/style.ts b/packages/app/src/components/workspace-setting/member/style.ts
index 46eeaa9bed..ce18dcb0ad 100644
--- a/packages/app/src/components/workspace-setting/member/style.ts
+++ b/packages/app/src/components/workspace-setting/member/style.ts
@@ -105,7 +105,7 @@ export const StyledPublishExplanation = styled('div')(() => {
fontSize: '18px',
lineHeight: '26px',
flex: 1,
- marginTop: '60px',
+ marginTop: '64px',
};
});
diff --git a/packages/app/src/components/workspace-setting/style.ts b/packages/app/src/components/workspace-setting/style.ts
index 2f95a29b89..dcde665f31 100644
--- a/packages/app/src/components/workspace-setting/style.ts
+++ b/packages/app/src/components/workspace-setting/style.ts
@@ -107,14 +107,14 @@ export const StyledPublishExplanation = styled('div')(() => {
marginBottom: '22px',
};
});
-export const StyledWorkspaceName = styled('div')(() => {
+export const StyledWorkspaceName = styled('span')(() => {
return {
fontWeight: '400',
fontSize: '18px',
lineHeight: '26px',
};
});
-export const StyledWorkspaceType = styled('div')(() => {
+export const StyledWorkspaceType = styled('span')(() => {
return {
fontWeight: '500',
fontSize: '18px',
@@ -148,3 +148,9 @@ export const StyledPublishContent = styled('div')(() => {
flexDirection: 'column',
};
});
+
+export const StyleAsync = styled('div')(() => {
+ return {
+ marginTop: '64px',
+ };
+});