mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-22 22:54:22 +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
|
@ -4,3 +4,7 @@
|
||||||
*/
|
*/
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.editableMarkdownEdit {
|
||||||
|
font-family: monospace;
|
||||||
|
}
|
|
@ -55,7 +55,10 @@ export const EditableMarkdown = (props: TextAreaProps) => {
|
||||||
return (
|
return (
|
||||||
<EditingModeBranch
|
<EditingModeBranch
|
||||||
edit={
|
edit={
|
||||||
<textarea {...props} />
|
<textarea
|
||||||
|
className={style.editableMarkdownEdit}
|
||||||
|
{...props}
|
||||||
|
/>
|
||||||
}
|
}
|
||||||
view={
|
view={
|
||||||
<FestaMarkdownRenderer code={props.value} />
|
<FestaMarkdownRenderer code={props.value} />
|
||||||
|
|
Loading…
Reference in a new issue