mirror of
https://github.com/muerwre/markdown-home-tab.git
synced 2025-04-24 16:36:41 +07:00
fixed scrollbars and textarea overflow
This commit is contained in:
parent
c1533e9cb9
commit
2d11fef559
4 changed files with 11 additions and 7 deletions
|
@ -32,9 +32,9 @@ const ReactMarkdownEditor: FC<ReactMarkdownEditorProps> = ({
|
|||
onChange={changeHandler}
|
||||
className={styles.textarea}
|
||||
style={style}
|
||||
>
|
||||
{value}
|
||||
</textarea>
|
||||
placeholder="Start typing here..."
|
||||
value={value}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
.editor {
|
||||
height: 100%;
|
||||
overflow: scroll;
|
||||
overflow: auto;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue