diff --git a/packages/frontend/core/src/components/app-sidebar/menu-item/index.css.ts b/packages/frontend/core/src/components/app-sidebar/menu-item/index.css.ts index 22a7bd1f06e0c..53110c9ae518e 100644 --- a/packages/frontend/core/src/components/app-sidebar/menu-item/index.css.ts +++ b/packages/frontend/core/src/components/app-sidebar/menu-item/index.css.ts @@ -40,13 +40,12 @@ export const root = style({ paddingLeft: '4px', paddingRight: '4px', }, - '&[data-type="collection-list-item"][data-collapsible="false"][data-active="true"],&[data-type="reference-page"][data-collapsible="false"][data-active="true"], &[data-type="reference-page"][data-collapsible="false"]:hover, &[data-type="collection-list-item"][data-collapsible="false"]:hover': - { - width: 'calc(100% + 8px)', - transform: 'translateX(-8px)', - paddingLeft: '20px', - paddingRight: '12px', - }, + '&[data-collapsible="false"]:is([data-active="true"], :hover)': { + width: 'calc(100% + 8px)', + transform: 'translateX(-8px)', + paddingLeft: '20px', + paddingRight: '12px', + }, [`${linkItemRoot}:first-of-type &`]: { marginTop: '0px', }, diff --git a/packages/frontend/core/src/components/page-list/view/collection-list.tsx b/packages/frontend/core/src/components/page-list/view/collection-list.tsx index 2cf32538ee8a4..4ca5d57c7666b 100644 --- a/packages/frontend/core/src/components/page-list/view/collection-list.tsx +++ b/packages/frontend/core/src/components/page-list/view/collection-list.tsx @@ -1,10 +1,5 @@ import { Button, FlexWrapper, Menu } from '@affine/component'; -import type { - Collection, - DeleteCollectionInfo, - Filter, - PropertiesMeta, -} from '@affine/env/filter'; +import type { Collection, Filter, PropertiesMeta } from '@affine/env/filter'; import { useAFFiNEI18N } from '@affine/i18n/hooks'; import { FilterIcon } from '@blocksuite/icons'; @@ -16,20 +11,14 @@ import type { AllPageListConfig } from './edit-collection/edit-collection'; export const CollectionPageListOperationsMenu = ({ collection, allPageListConfig, - userInfo, }: { collection: Collection; allPageListConfig: AllPageListConfig; - userInfo: DeleteCollectionInfo; }) => { const t = useAFFiNEI18N(); return ( - +