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(editor): white-space should be set to normal in tooltip (#9454)

Fangdun Tsai83915c2e9009
diff --git a/blocksuite/affine/components/src/toolbar/tooltip.ts b/blocksuite/affine/components/src/toolbar/tooltip.ts
index 49b9ca2c63..29883b8bfb 100644
--- a/blocksuite/affine/components/src/toolbar/tooltip.ts
+++ b/blocksuite/affine/components/src/toolbar/tooltip.ts
@@ -26,7 +26,7 @@ const styles = css`
background: var(--affine-tooltip);
overflow-wrap: anywhere;
- white-space: pre-wrap;
+ white-space: normal;
word-break: break-all;
}