fix(core): ensure the divider between cloud and local is displayed correctly (#10352)

This commit is contained in:
CatsJuice
2025-02-21 10:27:53 +00:00
parent 6e399ce34b
commit 64370980b3
2 changed files with 9 additions and 5 deletions
@@ -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,
@@ -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