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(core): disable sidebar user select (#5862)

EYHN0fff5588e6d8
diff --git a/packages/frontend/core/src/components/pure/workspace-slider-bar/collections/styles.css.ts b/packages/frontend/core/src/components/pure/workspace-slider-bar/collections/styles.css.ts
index bcc679a2a7..8397715392 100644
--- a/packages/frontend/core/src/components/pure/workspace-slider-bar/collections/styles.css.ts
+++ b/packages/frontend/core/src/components/pure/workspace-slider-bar/collections/styles.css.ts
@@ -140,6 +140,7 @@ export const emptyCollectionMessage = style({
fontSize: cssVar('fontSm'),
textAlign: 'center',
color: cssVar('black30'),
+ userSelect: 'none',
});
export const emptyCollectionNewButton = style({
padding: '0 8px',
diff --git a/packages/frontend/core/src/components/pure/workspace-slider-bar/favorite/styles.css.ts b/packages/frontend/core/src/components/pure/workspace-slider-bar/favorite/styles.css.ts
index be17481e0b..a4ac5da068 100644
--- a/packages/frontend/core/src/components/pure/workspace-slider-bar/favorite/styles.css.ts
+++ b/packages/frontend/core/src/components/pure/workspace-slider-bar/favorite/styles.css.ts
@@ -150,4 +150,5 @@ export const emptyFavouritesMessage = style({
fontSize: cssVar('fontSm'),
textAlign: 'center',
color: cssVar('black30'),
+ userSelect: 'none',
});