From 64370980b38c8bcc70b690afe1d3d9f8f3c2fac8 Mon Sep 17 00:00:00 2001 From: CatsJuice Date: Fri, 21 Feb 2025 10:27:53 +0000 Subject: [PATCH] fix(core): ensure the divider between cloud and local is displayed correctly (#10352) --- .../workspace-list/index.css.ts | 3 +++ .../user-with-workspace-list/workspace-list/index.tsx | 11 ++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/frontend/core/src/components/workspace-selector/user-with-workspace-list/workspace-list/index.css.ts b/packages/frontend/core/src/components/workspace-selector/user-with-workspace-list/workspace-list/index.css.ts index 6384343634..5d91da65ff 100644 --- a/packages/frontend/core/src/components/workspace-selector/user-with-workspace-list/workspace-list/index.css.ts +++ b/packages/frontend/core/src/components/workspace-selector/user-with-workspace-list/workspace-list/index.css.ts @@ -53,6 +53,9 @@ export const workspaceServerName = style([ }, }, ]); +export const infoMoreIcon = style({ + color: cssVarV2.icon.secondary, +}); export const workspaceServerSpacer = style({ width: 0, diff --git a/packages/frontend/core/src/components/workspace-selector/user-with-workspace-list/workspace-list/index.tsx b/packages/frontend/core/src/components/workspace-selector/user-with-workspace-list/workspace-list/index.tsx index aefac037bc..add794d7db 100644 --- a/packages/frontend/core/src/components/workspace-selector/user-with-workspace-list/workspace-list/index.tsx +++ b/packages/frontend/core/src/components/workspace-selector/user-with-workspace-list/workspace-list/index.tsx @@ -121,7 +121,9 @@ const WorkspaceServerInfo = ({
{menuItems.length ? ( - } /> + } + /> ) : null}
@@ -301,10 +303,9 @@ export const AFFiNEWorkspaceList = ({ onClickWorkspace={handleClickWorkspace} /> - {localWorkspaces.length > 0 || - (selfhostServers.length > 0 && ( - - ))} + {(localWorkspaces.length > 0 || selfhostServers.length > 0) && ( + + )} {/* 2. local */}