1
Fork 0
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:
Steffo 2022-07-17 06:19:23 +02:00
parent e2aef26685
commit e89ecc6700
Signed by: steffo
GPG key ID: 6965406171929D01
2 changed files with 8 additions and 1 deletions

View file

@ -3,4 +3,8 @@
* 8px padding + 2px border * 8px padding + 2px border
*/ */
padding: 10px; padding: 10px;
}
.editableMarkdownEdit {
font-family: monospace;
} }

View file

@ -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} />