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: style ui

DiamondThree7c076ea567a2
diff --git a/libs/components/editor-blocks/src/blocks/page/PageView.tsx b/libs/components/editor-blocks/src/blocks/page/PageView.tsx
index 5aca7e6460..17ad6cae9c 100644
--- a/libs/components/editor-blocks/src/blocks/page/PageView.tsx
+++ b/libs/components/editor-blocks/src/blocks/page/PageView.tsx
@@ -109,12 +109,15 @@ export const PageView: FC<CreateView> = ({ block, editor }) => {
);
};
-const PageTitleBlock = styled('div')({
- '.title': {
- fontSize: Theme.typography.page.fontSize,
- lineHeight: Theme.typography.page.lineHeight,
- },
- '.content': {
- outline: 'none',
- },
+const PageTitleBlock = styled('div')(({ theme }) => {
+ return {
+ '.title': {
+ fontSize: theme.affine.typography.page.fontSize,
+ lineHeight: theme.affine.typography.page.lineHeight,
+ fontWeight: theme.affine.typography.page.fontWeight,
+ },
+ '.content': {
+ outline: 'none',
+ },
+ };
});