@@ -1,7 +1,7 @@
1+import { marked } from "marked";
12 import React, { useEffect, useState } from "react";
23 import styled from "styled-components";
34 import { useDarkMode } from "usehooks-ts";
4-import { marked } from "marked";
55 import placeholderLine from "./placeholder";
66
77 export default function Editor() {
@@ -35,7 +35,7 @@ export default function Editor() {
3535 placeholder={placeholder}
3636 onChange={onChange}
3737 onKeyDown={onKeyDown}
38- ></EditorElement>
38+ />
3939 <EditorPreview dangerouslySetInnerHTML={{ __html: content }} />
4040 </EditorContainer>
4141 );
@@ -44,8 +44,8 @@ export default function Editor() {
4444 const EditorContainer = styled.div`
4545 display: grid;
4646 grid-template-columns: 1fr 1fr;
47- column-gap: 2em;
48- width: 100%;
47+ column-gap: 1em;
48+ max-width: 100%;
4949 height: 100%;
5050 padding: 0 1em;
5151
@@ -54,6 +54,8 @@ const EditorContainer = styled.div`
5454 `;
5555
5656 const EditorElement = styled.textarea`
57+ box-sizing: border-box;
58+ margin: 0;
5759 display: block;
5860 height: 100%;
5961 padding: 1em 0;