diff --git a/packages/frontend/core/src/pages/workspace/collection.tsx b/packages/frontend/core/src/pages/workspace/collection.tsx index 92d6852235..9d6585fb60 100644 --- a/packages/frontend/core/src/pages/workspace/collection.tsx +++ b/packages/frontend/core/src/pages/workspace/collection.tsx @@ -1,3 +1,7 @@ +import { + appSidebarOpenAtom, + SidebarSwitch, +} from '@affine/component/app-sidebar'; import { pushNotificationAtom } from '@affine/component/notification-center'; import { AffineShapeIcon, @@ -5,6 +9,7 @@ import { useCollectionManager, useEditCollection, } from '@affine/component/page-list'; +import { WindowsAppControls } from '@affine/core/components/pure/header/windows-app-controls'; import type { Collection } from '@affine/env/filter'; import { Trans } from '@affine/i18n'; import { useAFFiNEI18N } from '@affine/i18n/hooks'; @@ -90,6 +95,8 @@ export const Component = function CollectionPage() { ); }; +const isWindowsDesktop = environment.isDesktop && environment.isWindows; + const Placeholder = ({ collection }: { collection: Collection }) => { const { updateCollection } = useCollectionManager(collectionsCRUDAtom); const { node, open } = useEditCollection(useAllPageListConfig()); @@ -110,6 +117,7 @@ const Placeholder = ({ collection }: { collection: Collection }) => { localStorage.setItem('hide-empty-collection-help-info', 'true'); }, []); const t = useAFFiNEI18N(); + const leftSidebarOpen = useAtomValue(appSidebarOpenAtom); return (
{ display: 'flex', alignItems: 'center', gap: 8, - padding: '12px 24px', + height: 52, + paddingLeft: '16px', fontSize: 'var(--affine-font-xs)', ['WebkitAppRegion' as string]: 'drag', }} > +
{ > {collection.name}
+
+ {isWindowsDesktop && }