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.

chore: disable slider bar link item drag (#2010)

JimmFly94063352f5f4
diff --git a/apps/web/src/components/pure/workspace-slider-bar/style.ts b/apps/web/src/components/pure/workspace-slider-bar/style.ts
index ed11c1c5f0..df8bb1fb8a 100644
--- a/apps/web/src/components/pure/workspace-slider-bar/style.ts
+++ b/apps/web/src/components/pure/workspace-slider-bar/style.ts
@@ -69,6 +69,12 @@ export const StyledLink = styled(Link)(() => {
':visited': {
color: 'inherit',
},
+ userDrag: 'none',
+ userSelect: 'none',
+ appRegion: 'no-drag',
+ '-webkit-user-select': 'none',
+ '-webkit-user-drag': 'none',
+ '-webkit-app-region': 'no-drag',
};
});
export const StyledNewPageButton = styled('button')(({ theme }) => {