Files
gerrit/polygerrit-ui/app/elements/change/gr-confirm-submit-dialog/gr-confirm-submit-dialog.html
Wyatt Allen 722bfd7893 Add mobile breakpoint to confirm submit dialog for mobile
THe confirm submit dialog had a maximum width to prevent its content
from getting too wide before wrapping, however, this prevented it from
shrinking on mobile, resulting in the buttons being hidden. Add a mobile
breakpoint so the whole dialog remains visible.

Bug: Issue 9333
Change-Id: I2cb82c1a73b36d175665d6f67e5445087081b1fb
2018-06-29 16:56:57 -07:00

63 lines
2.0 KiB
HTML

<!--
@license
Copyright (C) 2018 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link rel="import" href="../../../bower_components/polymer/polymer.html">
<link rel="import" href="../../core/gr-navigation/gr-navigation.html">
<link rel="import" href="../../shared/gr-rest-api-interface/gr-rest-api-interface.html">
<link rel="import" href="../../../styles/shared-styles.html">
<dom-module id="gr-confirm-submit-dialog">
<template>
<style include="shared-styles">
#dialog {
min-width: 40em;
}
p {
margin-bottom: 1em;
}
@media screen and (max-width: 50em) {
#dialog {
min-width: inherit;
width: 100%;
}
}
</style>
<gr-confirm-dialog
id="dialog"
confirm-label="Continue"
confirm-on-enter
on-cancel="_handleCancelTap"
on-confirm="_handleConfirmTap">
<div class="header" slot="header">
[[action.label]]
</div>
<div class="main" slot="main">
<gr-endpoint-decorator name="confirm-submit-change">
<p>
Ready to submit &ldquo;<strong>[[change.subject]]</strong>&rdquo;?
</p>
<gr-endpoint-param name="change" value="[[change]]"></gr-endpoint-param>
<gr-endpoint-param name="action" value="[[action]]"></gr-endpoint-param>
</gr-endpoint-decorator>
</div>
</gr-confirm-dialog>
<gr-rest-api-interface id="restAPI"></gr-rest-api-interface>
</template>
<script src="gr-confirm-submit-dialog.js"></script>
</dom-module>