Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: filter button conflicts with electron header drag event (#3380)

JimmFlybb9908e1fa7a
diff --git a/packages/component/src/components/page-list/view/collection-list.css.ts b/packages/component/src/components/page-list/view/collection-list.css.ts
index 54341d3688..8a9fa7baa9 100644
--- a/packages/component/src/components/page-list/view/collection-list.css.ts
+++ b/packages/component/src/components/page-list/view/collection-list.css.ts
@@ -20,6 +20,7 @@ export const viewButton = style({
padding: '4px 8px',
fontSize: 'var(--affine-font-xs)',
background: 'var(--affine-white)',
+ ['WebkitAppRegion' as string]: 'no-drag',
maxWidth: '200px',
color: 'var(--affine-text-secondary-color)',
border: '1px solid var(--affine-border-color)',
@@ -81,6 +82,7 @@ export const filterButton = style({
justifyContent: 'center',
color: 'var(--affine-text-secondary-color)',
border: '1px solid var(--affine-border-color)',
+ ['WebkitAppRegion' as string]: 'no-drag',
transition: 'margin-left 0.2s ease-in-out',
':hover': {
borderColor: 'var(--affine-border-color)',