diff --git a/client/components/document/document.module.css b/client/components/document/document.module.css index 4ab0dab..ea8cbf6 100644 --- a/client/components/document/document.module.css +++ b/client/components/document/document.module.css @@ -24,3 +24,7 @@ /* Override geist-ui styling */ margin: 0 !important; } + +.textarea { + height: 100%; +} diff --git a/client/components/document/index.tsx b/client/components/document/index.tsx index 6977457..32b273a 100644 --- a/client/components/document/index.tsx +++ b/client/components/document/index.tsx @@ -17,6 +17,7 @@ type Props = { const Document = ({ remove, editable, title, content, setTitle, setContent, initialTab = 'edit' }: Props) => { const codeEditorRef = useRef(null) const [tab, setTab] = useState(initialTab) + const height = editable ? "500px" : '100%' const handleTabChange = (newTab: string) => { if (newTab === 'edit') { @@ -59,20 +60,23 @@ const Document = ({ remove, editable, title, content, setTitle, setContent, init {/* */} -