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} onChange={changeHandler}
className={styles.textarea} className={styles.textarea}
style={style} style={style}
> placeholder="Start typing here..."
{value} value={value}
</textarea> />
); );
}; };

View file

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

View file

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

View file

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