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): reference node word break (#8236)

pengx170a585a14a6d6
diff --git a/packages/frontend/core/src/components/affine/reference-link/styles.css.ts b/packages/frontend/core/src/components/affine/reference-link/styles.css.ts
index 77a41a91e9..dfe5dd6df7 100644
--- a/packages/frontend/core/src/components/affine/reference-link/styles.css.ts
+++ b/packages/frontend/core/src/components/affine/reference-link/styles.css.ts
@@ -9,5 +9,6 @@ export const pageReferenceIcon = style({
export const pageReferenceLink = style({
textDecoration: 'none',
color: 'inherit',
- wordBreak: 'break-all',
+ wordBreak: 'break-word',
+ hyphens: 'auto',
});