mirror of
https://github.com/muerwre/markdown-home-tab.git
synced 2025-04-25 00:46: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}
|
onChange={changeHandler}
|
||||||
className={styles.textarea}
|
className={styles.textarea}
|
||||||
style={style}
|
style={style}
|
||||||
>
|
placeholder="Start typing here..."
|
||||||
{value}
|
value={value}
|
||||||
</textarea>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
.editor {
|
.editor {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: scroll;
|
overflow: auto;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue