Skip to content

Commit

Permalink
fix: dancing editors
Browse files Browse the repository at this point in the history
  • Loading branch information
marabesi committed Oct 6, 2024
1 parent 68166ad commit 160ff7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ui/editor/EditorContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface Props {

export default function EditorContainer({ children }: Props) {
return (
<div className="flex flex-col h-full m-1" style={{ width: '49vw', maxWidth: '49vw' }}>
<div className="flex flex-col h-full m-1">
{children}
</div>
);
Expand Down
1 change: 1 addition & 0 deletions src/components/ui/editor/JsonEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export default forwardRef(function JsonEditor(props: Props, ref: ForwardedRef<Re
onChange={handleChange}
className={[className, 'h-full'].join(' ')}
style={style}
width="48vw"
height="100%"
extensions={[json()]}
theme={darkModeEnabled ? 'dark' : duotoneLight}
Expand Down

0 comments on commit 160ff7c

Please sign in to comment.