Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey committed Aug 26, 2023
1 parent 899930f commit 998802f
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions ui/editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,20 +132,18 @@ export default function Editor() {
}, [editor, content, hydrated]);

return (
<div>
{editor && <EditorBubbleMenu editor={editor} />}
<div
onClick={() => {
editor?.chain().focus().run();
}}
className="relative min-h-[500px] w-full max-w-screen-lg border-stone-200 bg-white p-12 px-8 sm:mb-[calc(20vh)] sm:rounded-lg sm:border sm:px-12 sm:shadow-lg"
>
<div className="absolute right-5 top-5 mb-5 rounded-lg bg-stone-100 px-2 py-1 text-sm text-stone-400">
{saveStatus}
</div>
{editor?.isActive("image") && <ImageResizer editor={editor} />}
<EditorContent editor={editor} />
<div
onClick={() => {
editor?.chain().focus().run();
}}
className="relative min-h-[500px] w-full max-w-screen-lg border-stone-200 bg-white p-12 px-8 sm:mb-[calc(20vh)] sm:rounded-lg sm:border sm:px-12 sm:shadow-lg"
>
<div className="absolute right-5 top-5 mb-5 rounded-lg bg-stone-100 px-2 py-1 text-sm text-stone-400">
{saveStatus}
</div>
{editor && <EditorBubbleMenu editor={editor} />}
{editor?.isActive("image") && <ImageResizer editor={editor} />}
<EditorContent editor={editor} />
</div>
);
}

0 comments on commit 998802f

Please sign in to comment.