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): backlink preview should use sans font family (#9102)

Peng Xiaob864cbf9d3e9
diff --git a/packages/frontend/core/src/components/blocksuite/block-suite-editor/bi-directional-link-panel.css.ts b/packages/frontend/core/src/components/blocksuite/block-suite-editor/bi-directional-link-panel.css.ts
index 509031c590..2c185be276 100644
--- a/packages/frontend/core/src/components/blocksuite/block-suite-editor/bi-directional-link-panel.css.ts
+++ b/packages/frontend/core/src/components/blocksuite/block-suite-editor/bi-directional-link-panel.css.ts
@@ -96,6 +96,9 @@ export const linkPreview = style({
padding: '8px',
marginBottom: '8px',
color: cssVarV2('text/primary'),
+ vars: {
+ [cssVar('fontFamily')]: cssVar('fontSansFamily'),
+ },
':hover': {
backgroundColor: cssVarV2('layer/background/hoverOverlay'),
},