Skip to content

Commit

Permalink
WIP: test size SvgMdxEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
kleberbaum committed Jun 5, 2024
1 parent 273246e commit e46fba8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/components/mdx-editor/SvgMdxEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const CodeMdxEditor: FC<ICodeMdxEditorProps> = ({
pt={14}
sx={{
'.cm-editor': {
height: '60dvh'
height: '90dvh'
}
}}
>
Expand Down
29 changes: 12 additions & 17 deletions src/components/sections/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4464,23 +4464,18 @@ const Hero: FC = () => {
<Box as={FadeIn} position="relative" gridArea="image">
<AspectRatio ratio={4 / 3} w="full" h="auto">
<Box position="relative" w="full" h="full">
<Stack
w="full"
h="500px"
>
<SvgMdxEditor
key={"mdxKey"}
value={parsedContent}
isEditing={true}
onUpdateValue={value => {
console.log('my cool content', JSON.stringify(value));
setValues({
...values,
content: JSON.stringify(value)
});
}}
/>
</Stack>
<SvgMdxEditor
key={"mdxKey"}
value={parsedContent}
isEditing={true}
onUpdateValue={value => {
console.log('my cool content', JSON.stringify(value));
setValues({
...values,
content: JSON.stringify(value)
});
}}
/>

<Netsnek
display="none"
Expand Down

0 comments on commit e46fba8

Please sign in to comment.