mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-22 14:44:21 +00:00
Force monospace in the Markdown editor
This commit is contained in:
parent
e2aef26685
commit
e89ecc6700
2 changed files with 8 additions and 1 deletions
|
@ -3,4 +3,8 @@
|
|||
* 8px padding + 2px border
|
||||
*/
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.editableMarkdownEdit {
|
||||
font-family: monospace;
|
||||
}
|
|
@ -55,7 +55,10 @@ export const EditableMarkdown = (props: TextAreaProps) => {
|
|||
return (
|
||||
<EditingModeBranch
|
||||
edit={
|
||||
<textarea {...props} />
|
||||
<textarea
|
||||
className={style.editableMarkdownEdit}
|
||||
{...props}
|
||||
/>
|
||||
}
|
||||
view={
|
||||
<FestaMarkdownRenderer code={props.value} />
|
||||
|
|
Loading…
Reference in a new issue