chore: adjust icon and style (#2949)

This commit is contained in:
3720
2023-06-30 23:38:47 +08:00
committed by Alex Yang
parent 721e5e4dd9
commit d24009f494
2 changed files with 13 additions and 12 deletions
@@ -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: <FilterIcon />,
icon: <FilterMinusIcon />,
name: 'Remove special filter',
click: () => removeFromAllowList(page.id),
},
@@ -65,7 +66,7 @@ export const PageOperations = ({
...(!inExcludeList
? [
{
icon: <FilterIcon />,
icon: <FilterUndoIcon />,
name: 'Exclude from filter',
click: () => addToExcludeList(page.id),
},
@@ -157,11 +157,11 @@ export const EditCollection = ({
className={styles.scrollContainer}
viewPortClassName={styles.container}
>
<div className={styles.excludeList}>
<div className={styles.excludeTitle}>
Exclude from this collection
</div>
{value.excludeList ? (
{value.excludeList?.length ? (
<div className={styles.excludeList}>
<div className={styles.excludeTitle}>
Exclude from this collection
</div>
<div className={styles.excludeListContent}>
{value.excludeList.map(id => {
return (
@@ -174,11 +174,11 @@ export const EditCollection = ({
);
})}
</div>
) : null}
<div className={styles.excludeTip}>
These pages will never appear in the current collection
<div className={styles.excludeTip}>
These pages will never appear in the current collection
</div>
</div>
</div>
) : null}
<div
style={{
backgroundColor: 'var(--affine-hover-color)',