diff --git a/ghost/admin/app/components/modal-post-preview.hbs b/ghost/admin/app/components/modal-post-preview.hbs
index d3a59f9a49..92eeccdbcc 100644
--- a/ghost/admin/app/components/modal-post-preview.hbs
+++ b/ghost/admin/app/components/modal-post-preview.hbs
@@ -9,29 +9,33 @@
- {{#if this.model.isPost}}
+ {{#if @model.post.isPost}}
{{/if}}
-
+
+
{{#if (eq this.tab "browser")}}
-
+
{{/if}}
- {{#if (and (eq this.tab "mobile") this.model.isPost)}}
-
+ {{#if (and (eq this.tab "mobile") @model.post.isPost)}}
+
{{/if}}
- {{#if (and (eq this.tab "email") this.model.isPost)}}
-
+ {{#if (and (eq this.tab "email") @model.post.isPost)}}
+
{{/if}}
{{#if (eq this.tab "social")}}
-
+
{{/if}}
\ No newline at end of file
diff --git a/ghost/admin/app/controllers/editor.js b/ghost/admin/app/controllers/editor.js
index 4feb681cbe..058b497940 100644
--- a/ghost/admin/app/controllers/editor.js
+++ b/ghost/admin/app/controllers/editor.js
@@ -429,6 +429,7 @@ export default Controller.extend({
post.set('statusScratch', null);
if (!options.silent) {
+ this.set('showPostPreviewModal', false);
this._showSaveNotification(prevStatus, post.get('status'), isNew ? true : false);
}
@@ -749,6 +750,7 @@ export default Controller.extend({
this.set('shouldFocusEditor', false);
this.set('leaveEditorTransition', null);
this.set('showLeaveEditorModal', false);
+ this.set('showPostPreviewModal', false);
this.set('infoMessage', null);
this.set('wordCount', null);
diff --git a/ghost/admin/app/styles/components/publishmenu.css b/ghost/admin/app/styles/components/publishmenu.css
index 68de021ff5..f75b61b82e 100644
--- a/ghost/admin/app/styles/components/publishmenu.css
+++ b/ghost/admin/app/styles/components/publishmenu.css
@@ -53,6 +53,7 @@
font-size: 1.4rem;
font-weight: normal;
will-change: transform, opacity;
+ z-index: 99999; /* needs to sit on top of preview modal */
}
.gh-publishmenu-dropdown.ember-basic-dropdown--transitioning-in {
diff --git a/ghost/admin/app/templates/editor.hbs b/ghost/admin/app/templates/editor.hbs
index f7c18ed64f..5f11487282 100644
--- a/ghost/admin/app/templates/editor.hbs
+++ b/ghost/admin/app/templates/editor.hbs
@@ -121,7 +121,12 @@
{{#if this.showPostPreviewModal}}
{{/if}}