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

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

diff --git a/app/assets/javascripts/discourse/app/controllers/composer.js b/app/assets/javascripts/discourse/app/controllers/composer.js
index 042f668..42242dc 100644
--- a/app/assets/javascripts/discourse/app/controllers/composer.js
+++ b/app/assets/javascripts/discourse/app/controllers/composer.js
@@ -616,6 +616,10 @@ export default Controller.extend({
       this.set("model.isWarning", false);
     }
 
+    if (this.site.mobileView && this.showPreview) {
+      this.set("showPreview", false);
+    }
+
     const composer = this.model;
 
     if (composer.cantSubmitPost) {
diff --git a/app/assets/stylesheets/mobile/compose.scss b/app/assets/stylesheets/mobile/compose.scss
index 7156baa..76d2634 100644
--- a/app/assets/stylesheets/mobile/compose.scss
+++ b/app/assets/stylesheets/mobile/compose.scss
@@ -122,6 +122,12 @@
   }
 
   &.show-preview {
+    .submit-panel .save-or-cancel {
+      z-index: z("fullscreen") + 1;
+      .cancel {
+        display: none;
+      }
+    }
     .d-editor-preview-wrapper {
       position: fixed;
       z-index: z("fullscreen");
@@ -130,6 +136,7 @@
       left: 0;
       right: 0;
       background-color: $secondary;
+      border-bottom: 40px solid $secondary;
       max-width: 100%;
       margin: 0;
       padding: 10px;

GitHub sha: 723d7e3a

This commit appears in #10286 which was approved by eviltrout. It was merged by tshenry.