mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-20 17:11:17 -08:00
Fix font size consistency between editor and timeline
This commit is contained in:
1 parent
824216ce60
commit
689ba672c4
1 file changed
+3
-3
@@ -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>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user