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): cmdk unexpected highlighting style (#7538)

JimmFly4512a1a91d7f
diff --git a/packages/frontend/core/src/modules/quicksearch/views/highlight-text.css.ts b/packages/frontend/core/src/modules/quicksearch/views/highlight-text.css.ts
index 3cba1f298d..264aa3cc03 100644
--- a/packages/frontend/core/src/modules/quicksearch/views/highlight-text.css.ts
+++ b/packages/frontend/core/src/modules/quicksearch/views/highlight-text.css.ts
@@ -2,7 +2,7 @@ import { cssVar } from '@toeverything/theme';
import { style } from '@vanilla-extract/css';
export const highlightText = style({
- whiteSpace: 'pre',
+ whiteSpace: 'nowrap',
overflow: 'hidden',
textOverflow: 'ellipsis',
});