mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 11:55:09 +08:00
FEATURE: Submit post from mobile composer preview (#10286)
This commit is contained in:
parent
22fdd5dfda
commit
723d7e3a61
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user