diff --git a/packages/component/src/components/page-list/filter/filter-list.tsx b/packages/component/src/components/page-list/filter/filter-list.tsx index 134690ea3a..52e75fdd27 100644 --- a/packages/component/src/components/page-list/filter/filter-list.tsx +++ b/packages/component/src/components/page-list/filter/filter-list.tsx @@ -2,7 +2,7 @@ import type { Filter } from '@affine/env/filter'; import type { PropertiesMeta } from '@affine/env/filter'; import { CloseIcon, PlusIcon } from '@blocksuite/icons'; -import { Menu } from '../../..'; +import { Button, IconButton, Menu } from '../../..'; import { Condition } from './condition'; import * as styles from './index.css'; import { CreateFilterMenu } from './vars'; @@ -22,6 +22,7 @@ export const FilterList = ({ display: 'flex', flexWrap: 'wrap', gap: 10, + alignItems: 'center', }} > {value.map((filter, i) => { @@ -57,17 +58,19 @@ export const FilterList = ({ /> } > -
- -
+ {value.length === 0 ? ( + + ) : ( + + + + )} ); diff --git a/packages/component/src/components/page-list/view/create-collection.tsx b/packages/component/src/components/page-list/view/create-collection.tsx index c1c8bada0e..81e92dba71 100644 --- a/packages/component/src/components/page-list/view/create-collection.tsx +++ b/packages/component/src/components/page-list/view/create-collection.tsx @@ -201,6 +201,7 @@ export const EditCollection = ({ borderRadius: 8, padding: 18, marginTop: 20, + minHeight: '200px', }} >
Filters