mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-22 19:53:48 +08:00
fix(core): ensure the divider between cloud and local is displayed correctly (#10352)
This commit is contained in:
+3
@@ -53,6 +53,9 @@ export const workspaceServerName = style([
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
export const infoMoreIcon = style({
|
||||||
|
color: cssVarV2.icon.secondary,
|
||||||
|
});
|
||||||
|
|
||||||
export const workspaceServerSpacer = style({
|
export const workspaceServerSpacer = style({
|
||||||
width: 0,
|
width: 0,
|
||||||
|
|||||||
+6
-5
@@ -121,7 +121,9 @@ const WorkspaceServerInfo = ({
|
|||||||
<div className={styles.workspaceServerSpacer} />
|
<div className={styles.workspaceServerSpacer} />
|
||||||
{menuItems.length ? (
|
{menuItems.length ? (
|
||||||
<Menu items={menuItems}>
|
<Menu items={menuItems}>
|
||||||
<IconButton icon={<MoreHorizontalIcon />} />
|
<IconButton
|
||||||
|
icon={<MoreHorizontalIcon className={styles.infoMoreIcon} />}
|
||||||
|
/>
|
||||||
</Menu>
|
</Menu>
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
@@ -301,10 +303,9 @@ export const AFFiNEWorkspaceList = ({
|
|||||||
onClickWorkspace={handleClickWorkspace}
|
onClickWorkspace={handleClickWorkspace}
|
||||||
/>
|
/>
|
||||||
</FrameworkScope>
|
</FrameworkScope>
|
||||||
{localWorkspaces.length > 0 ||
|
{(localWorkspaces.length > 0 || selfhostServers.length > 0) && (
|
||||||
(selfhostServers.length > 0 && (
|
<Divider size="thinner" className={styles.serverDivider} />
|
||||||
<Divider size="thinner" className={styles.serverDivider} />
|
)}
|
||||||
))}
|
|
||||||
|
|
||||||
{/* 2. local */}
|
{/* 2. local */}
|
||||||
<LocalWorkspaces
|
<LocalWorkspaces
|
||||||
|
|||||||
Reference in New Issue
Block a user