logo

demo

Unnamed repository; edit this file 'description' to name the repository. git clone https://hacktivis.me/git/demo.git
commit: 3d4c3ea141ea9ebb6c281cfca6084c7db1d866cd
parent e16d1fc847c1bddc96ef7e8849d025e98e770cdc
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat,  2 Sep 2023 23:32:17 +0200

vanilla-editor: Textarea height fix

Diffstat:

Mvanilla-editor/vanilla-editor.css10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/vanilla-editor/vanilla-editor.css b/vanilla-editor/vanilla-editor.css @@ -1,4 +1,10 @@ -textarea { +#content_source, #content_view { width: 100%; - height: min-content; + + /* + * I so wish height: max-content; would work for textareas… + * Should you need to do so, you need to put an hidden <pre> and synchronise it's content with the textarea, just like for the rich-text area. + */ + height: 25ch; /* fallback */ + height: 33vh; }