fixed scrollbars and textarea overflow

This commit is contained in:
Fedor Katurov 2023-04-26 10:15:46 +06:00
parent c1533e9cb9
commit 2d11fef559
4 changed files with 11 additions and 7 deletions

View file

@ -32,9 +32,9 @@ const ReactMarkdownEditor: FC<ReactMarkdownEditorProps> = ({
onChange={changeHandler}
className={styles.textarea}
style={style}
>
{value}
</textarea>
placeholder="Start typing here..."
value={value}
/>
);
};

View file

@ -4,6 +4,10 @@
padding: 0;
background: transparent;
color: inherit;
border: none;
border-width: 0px !important;
outline: none;
box-sizing: border-box;
resize: none;
vertical-align: bottom;
margin: 0;
}

View file

@ -1,5 +1,5 @@
.editor {
height: 100%;
overflow: scroll;
overflow: auto;
box-sizing: border-box;
}

View file

@ -1,6 +1,6 @@
:root {
--color-border: #333333;
--color-background: #111111;
--color-border: #444444;
--color-background: #2e2e2e;
--color-text: #ffffff;
--color-link: #25bfe6;
--color-code-text: #ff3344;