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

View File

@@ -53,6 +53,9 @@ export const workspaceServerName = style([
},
},
]);
export const infoMoreIcon = style({
color: cssVarV2.icon.secondary,
});
export const workspaceServerSpacer = style({
width: 0,

View File

@@ -121,7 +121,9 @@ const WorkspaceServerInfo = ({
<div className={styles.workspaceServerSpacer} />
{menuItems.length ? (
<Menu items={menuItems}>
<IconButton icon={<MoreHorizontalIcon />} />
<IconButton
icon={<MoreHorizontalIcon className={styles.infoMoreIcon} />}
/>
</Menu>
) : null}
</div>
@@ -301,10 +303,9 @@ export const AFFiNEWorkspaceList = ({
onClickWorkspace={handleClickWorkspace}
/>
</FrameworkScope>
{localWorkspaces.length > 0 ||
(selfhostServers.length > 0 && (
<Divider size="thinner" className={styles.serverDivider} />
))}
{(localWorkspaces.length > 0 || selfhostServers.length > 0) && (
<Divider size="thinner" className={styles.serverDivider} />
)}
{/* 2. local */}
<LocalWorkspaces