diff --git a/polygerrit-ui/app/elements/change/gr-confirm-abandon-dialog/gr-confirm-abandon-dialog.html b/polygerrit-ui/app/elements/change/gr-confirm-abandon-dialog/gr-confirm-abandon-dialog.html
index 7366d7448d..ea65c010b6 100644
--- a/polygerrit-ui/app/elements/change/gr-confirm-abandon-dialog/gr-confirm-abandon-dialog.html
+++ b/polygerrit-ui/app/elements/change/gr-confirm-abandon-dialog/gr-confirm-abandon-dialog.html
@@ -28,6 +28,11 @@ limitations under the License.
opacity: .5;
pointer-events: none;
}
+ .main {
+ display: flex;
+ flex-direction: column;
+ width: 100%;
+ }
label {
cursor: pointer;
display: block;
diff --git a/polygerrit-ui/app/elements/change/gr-confirm-cherrypick-dialog/gr-confirm-cherrypick-dialog.html b/polygerrit-ui/app/elements/change/gr-confirm-cherrypick-dialog/gr-confirm-cherrypick-dialog.html
index b21575bb5c..ae738e5979 100644
--- a/polygerrit-ui/app/elements/change/gr-confirm-cherrypick-dialog/gr-confirm-cherrypick-dialog.html
+++ b/polygerrit-ui/app/elements/change/gr-confirm-cherrypick-dialog/gr-confirm-cherrypick-dialog.html
@@ -35,6 +35,11 @@ limitations under the License.
iron-autogrow-textarea {
padding: 0;
}
+ .main {
+ display: flex;
+ flex-direction: column;
+ width: 100%;
+ }
.main label,
.main input[type="text"] {
display: block;
@@ -66,6 +71,8 @@ limitations under the License.