mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
fix(core): ensure the divider between cloud and local is displayed correctly (#10352)
This commit is contained in:
@@ -53,6 +53,9 @@ export const workspaceServerName = style([
|
||||
},
|
||||
},
|
||||
]);
|
||||
export const infoMoreIcon = style({
|
||||
color: cssVarV2.icon.secondary,
|
||||
});
|
||||
|
||||
export const workspaceServerSpacer = style({
|
||||
width: 0,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user