Fix
This commit is contained in:
parent
c23bbf81f1
commit
111dbdcd7f
@ -1,14 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<mk-window ref="window" is-modal @closed="$destroy">
|
<mk-window class="mk-post-form-window" ref="window" is-modal @closed="$destroy">
|
||||||
<span slot="header">
|
<span slot="header" class="mk-post-form-window--header">
|
||||||
<span :class="$style.icon" v-if="geo">%fa:map-marker-alt%</span>
|
<span class="icon" v-if="geo">%fa:map-marker-alt%</span>
|
||||||
<span v-if="!reply">%i18n:@note%</span>
|
<span v-if="!reply">%i18n:@note%</span>
|
||||||
<span v-if="reply">%i18n:@reply%</span>
|
<span v-if="reply">%i18n:@reply%</span>
|
||||||
<span :class="$style.count" v-if="media.length != 0">{{ '%i18n:@attaches%'.replace('{}', media.length) }}</span>
|
<span class="count" v-if="media.length != 0">{{ '%i18n:@attaches%'.replace('{}', media.length) }}</span>
|
||||||
<span :class="$style.count" v-if="uploadings.length != 0">{{ '%i18n:@uploading-media%'.replace('{}', uploadings.length) }}<mk-ellipsis/></span>
|
<span class="count" v-if="uploadings.length != 0">{{ '%i18n:@uploading-media%'.replace('{}', uploadings.length) }}<mk-ellipsis/></span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<mk-note-preview v-if="reply" :class="$style.notePreview" :note="reply"/>
|
<div class="mk-post-form-window--body">
|
||||||
|
<mk-note-preview v-if="reply" class="notePreview" :note="reply"/>
|
||||||
<mk-post-form ref="form"
|
<mk-post-form ref="form"
|
||||||
:reply="reply"
|
:reply="reply"
|
||||||
@posted="onPosted"
|
@posted="onPosted"
|
||||||
@ -16,6 +17,7 @@
|
|||||||
@change-attached-media="onChangeMedia"
|
@change-attached-media="onChangeMedia"
|
||||||
@geo-attached="onGeoAttached"
|
@geo-attached="onGeoAttached"
|
||||||
@geo-dettached="onGeoDettached"/>
|
@geo-dettached="onGeoDettached"/>
|
||||||
|
</div>
|
||||||
</mk-window>
|
</mk-window>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -56,7 +58,9 @@ export default Vue.extend({
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus" module>
|
<style lang="stylus" scoped>
|
||||||
|
root(isDark)
|
||||||
|
.mk-post-form-window--header
|
||||||
.icon
|
.icon
|
||||||
margin-right 8px
|
margin-right 8px
|
||||||
|
|
||||||
@ -70,7 +74,17 @@ export default Vue.extend({
|
|||||||
&:after
|
&:after
|
||||||
content ')'
|
content ')'
|
||||||
|
|
||||||
|
.mk-post-form-window--body
|
||||||
.notePreview
|
.notePreview
|
||||||
|
if isDark
|
||||||
margin 16px 22px 0 22px
|
margin 16px 22px 0 22px
|
||||||
|
else
|
||||||
|
margin 16px 22px
|
||||||
|
|
||||||
|
.mk-post-form-window[data-darkmode]
|
||||||
|
root(true)
|
||||||
|
|
||||||
|
.mk-post-form-window:not([data-darkmode])
|
||||||
|
root(false)
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user