From dc936febaa54b9f55219b939821b7e71ffbacc29 Mon Sep 17 00:00:00 2001 From: Hassan Abouelela Date: Wed, 29 Jun 2022 19:16:25 +0400 Subject: Expand Code Field To Fill Space Signed-off-by: Hassan Abouelela --- src/components/InputTypes/Code.tsx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/components/InputTypes/Code.tsx b/src/components/InputTypes/Code.tsx index 8b2abd9..7112782 100644 --- a/src/components/InputTypes/Code.tsx +++ b/src/components/InputTypes/Code.tsx @@ -18,6 +18,10 @@ const styles = css` border-radius: 5px; overflow:auto; height: 20rem; + + .cm-editor { + height: 100%; + } `; export default function Code(props: CodeProps): JSX.Element { -- cgit v1.2.3