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.

feat: modify Content component

QiShaoXuan2f5724578fa3
diff --git a/packages/app/src/ui/layout/Content.tsx b/packages/app/src/ui/layout/Content.tsx
index 510f3886a6..38d13251e5 100644
--- a/packages/app/src/ui/layout/Content.tsx
+++ b/packages/app/src/ui/layout/Content.tsx
@@ -14,8 +14,21 @@ export type ContentProps = {
lineNum?: number;
children: string;
};
-
-export const Content = styled.div<ContentProps>(
+export const Content = styled('div', {
+ shouldForwardProp: prop => {
+ return ![
+ 'color',
+ 'fontSize',
+ 'weight',
+ 'lineHeight',
+ 'ellipsis',
+ 'lineNum',
+ 'width',
+ 'maxWidth',
+ 'align',
+ ].includes(prop);
+ },
+})<ContentProps>(
({
theme,
color,