FEATURE: Submit post from mobile composer preview (#10286)

This commit is contained in:
tshenry 2020-07-22 09:17:51 -07:00 committed by GitHub
parent 22fdd5dfda
commit 723d7e3a61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -616,6 +616,10 @@ export default Controller.extend({
this.set("model.isWarning", false); this.set("model.isWarning", false);
} }
if (this.site.mobileView && this.showPreview) {
this.set("showPreview", false);
}
const composer = this.model; const composer = this.model;
if (composer.cantSubmitPost) { if (composer.cantSubmitPost) {

View File

@ -122,6 +122,12 @@
} }
&.show-preview { &.show-preview {
.submit-panel .save-or-cancel {
z-index: z("fullscreen") + 1;
.cancel {
display: none;
}
}
.d-editor-preview-wrapper { .d-editor-preview-wrapper {
position: fixed; position: fixed;
z-index: z("fullscreen"); z-index: z("fullscreen");
@ -130,6 +136,7 @@
left: 0; left: 0;
right: 0; right: 0;
background-color: $secondary; background-color: $secondary;
border-bottom: 40px solid $secondary;
max-width: 100%; max-width: 100%;
margin: 0; margin: 0;
padding: 10px; padding: 10px;