Fix font size consistency between editor and timeline

This commit is contained in:
7w1 committed 2026-02-23 22:01:53 -06:00
1 parent 824216ce60
commit 689ba672c4
1 file changed
+3 -3
+3 -3
View File
@@ -128,9 +128,9 @@ export function RenderElement({ attributes, element, children }: RenderElementPr
switch (element.type) {
case BlockType.Paragraph:
return (
<Text {...attributes} className={css.Paragraph}>
<Text {...attributes} className={css.Paragraph} style={{ fontSize: '1rem', lineHeight: 'inherit' }} >
{children}
</Text>
</ Text>
);
case BlockType.Heading:
if (element.level === 1)
@@ -224,7 +224,7 @@ export function RenderElement({ attributes, element, children }: RenderElementPr
);
default:
return (
<Text className={css.Paragraph} {...attributes}>
<Text className={css.Paragraph} {...attributes} style={{ fontSize: '1rem', lineHeight: 'inherit' }}>
{children}
</Text>
);