🐛 Fix weird text align

This commit is contained in:
Alejandro Alonso 2022-09-09 12:13:59 +02:00 committed by Alonso Torres
parent 643e58c61b
commit 726f55bd04
2 changed files with 3 additions and 2 deletions

View file

@ -16,7 +16,7 @@
.text-editor { .text-editor {
.DraftEditor-root { .DraftEditor-root {
height: 100%; height: auto;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }

View file

@ -21,7 +21,8 @@
:width width :width width
:fontFamily "sourcesanspro" :fontFamily "sourcesanspro"
:display "flex" :display "flex"
:whiteSpace "break-spaces"}] :whiteSpace "break-spaces"
:flex-wrap "wrap"}]
(cond-> base (cond-> base
(= valign "top") (obj/set! "alignItems" "flex-start") (= valign "top") (obj/set! "alignItems" "flex-start")
(= valign "center") (obj/set! "alignItems" "center") (= valign "center") (obj/set! "alignItems" "center")