From d24009f4941514d7cf69cce4914812fa3c374c61 Mon Sep 17 00:00:00 2001 From: 3720 Date: Fri, 30 Jun 2023 23:38:47 +0800 Subject: [PATCH] chore: adjust icon and style (#2949) --- .../workspace-slider-bar/collections/page.tsx | 7 ++++--- .../page-list/view/create-collection.tsx | 18 +++++++++--------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/apps/web/src/components/pure/workspace-slider-bar/collections/page.tsx b/apps/web/src/components/pure/workspace-slider-bar/collections/page.tsx index fe8c47c543..63c4c42715 100644 --- a/apps/web/src/components/pure/workspace-slider-bar/collections/page.tsx +++ b/apps/web/src/components/pure/workspace-slider-bar/collections/page.tsx @@ -4,7 +4,8 @@ import { useAFFiNEI18N } from '@affine/i18n/hooks'; import { DeleteIcon, EdgelessIcon, - FilterIcon, + FilterMinusIcon, + FilterUndoIcon, MoreHorizontalIcon, PageIcon, } from '@blocksuite/icons'; @@ -56,7 +57,7 @@ export const PageOperations = ({ ...(inAllowList ? [ { - icon: , + icon: , name: 'Remove special filter', click: () => removeFromAllowList(page.id), }, @@ -65,7 +66,7 @@ export const PageOperations = ({ ...(!inExcludeList ? [ { - icon: , + icon: , name: 'Exclude from filter', click: () => addToExcludeList(page.id), }, 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 f8b166a287..cbf754cf40 100644 --- a/packages/component/src/components/page-list/view/create-collection.tsx +++ b/packages/component/src/components/page-list/view/create-collection.tsx @@ -157,11 +157,11 @@ export const EditCollection = ({ className={styles.scrollContainer} viewPortClassName={styles.container} > -
-
- Exclude from this collection -
- {value.excludeList ? ( + {value.excludeList?.length ? ( +
+
+ Exclude from this collection +
{value.excludeList.map(id => { return ( @@ -174,11 +174,11 @@ export const EditCollection = ({ ); })}
- ) : null} -
- These pages will never appear in the current collection +
+ These pages will never appear in the current collection +
-
+ ) : null}