Make editor container and input flex-aware

Enable flex layout for the editor wrapper and make .common-editor-inputer a flexible child. Added display:flex and flex-direction:column to the container rule, replaced height:auto with flex: 1 1 auto and added min-height:0 on .common-editor-inputer to allow proper shrinking/growth and avoid overflow issues in flex layouts. (css/main.css)
This commit is contained in:
jonny
2026-04-11 10:43:47 +08:00
parent ed5fc86e39
commit 15d99cb51f
+4 -1
View File
@@ -52,6 +52,8 @@ a{color: #555;}
overflow: visible;
box-sizing: border-box;
contain: layout;
display: flex;
flex-direction: column;
}
.memo-editor-header{
@@ -150,7 +152,8 @@ a{color: #555;}
.common-editor-inputer{
padding-right: 1.5rem;
height: auto;
flex: 1 1 auto;
min-height: 0;
display: block;
box-sizing: border-box;
}