File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -557,9 +557,14 @@ export default {
557557 if (! wrapper) {
558558 return
559559 }
560+ const mainWrapper = wrapper .$el .querySelector (' .textarea__main-wrapper' )
560561 const textarea = wrapper .$el .querySelector (' textarea' )
561- textarea .style .height = ' auto'
562- textarea .style .height = ` ${ textarea .scrollHeight + 4 } px`
562+
563+ if (mainWrapper && textarea) {
564+ mainWrapper .style .height = ' auto'
565+ mainWrapper .style .height = ` ${ textarea .scrollHeight + 4 } px`
566+ }
567+
563568 this .checkPreviewOverflow ()
564569 }, 100 ),
565570 async resetRenderMode () {
@@ -631,6 +636,13 @@ export default {
631636 & __row {
632637 display: flex;
633638 gap: 0 4px ;
639+ align- items: flex- start;
640+ : deep (.textarea ) {
641+ flex: 1 ;
642+ textarea {
643+ height: 100 % ;
644+ }
645+ }
634646 & _template- only {
635647 width: 100 % ;
636648 display: flex;
You can’t perform that action at this time.
0 commit comments