Give textarea min-height in reply dialog
The textarea could get squeezed to an unusably small height, e.g. if
there were a lot of draft comments. This change also fixes some related
minor flexbox issues in the reply dialog.
Bug: Issue 4320
Change-Id: I35fde8379eac570385e29c45f271f177721f0b60
diff --git a/polygerrit-ui/app/elements/change/gr-reply-dialog/gr-reply-dialog.html b/polygerrit-ui/app/elements/change/gr-reply-dialog/gr-reply-dialog.html
index 8251b04..cec1e90 100644
--- a/polygerrit-ui/app/elements/change/gr-reply-dialog/gr-reply-dialog.html
+++ b/polygerrit-ui/app/elements/change/gr-reply-dialog/gr-reply-dialog.html
@@ -49,6 +49,7 @@
padding: .5em .75em;
width: 100%;
}
+ .peopleContainer,
.labelsContainer,
.actionsContainer {
flex-shrink: 0;
@@ -67,7 +68,6 @@
}
gr-account-list {
display: flex;
- flex: 1;
flex-wrap: wrap;
}
#reviewerConfirmationOverlay {
@@ -84,8 +84,10 @@
font-style: italic;
}
.textareaContainer {
- position: relative;
display: flex;
+ flex: 1;
+ min-height: 6em;
+ position: relative;
}
iron-autogrow-textarea {
padding: 0;
@@ -125,6 +127,7 @@
background-color: #ddd;
}
.draftsContainer {
+ flex: 1;
overflow-y: auto;
}
.draftsContainer h3 {