Skip to content

Commit

Permalink
Emoji: Resolve #167
Browse files Browse the repository at this point in the history
  • Loading branch information
fs5m8 committed Feb 12, 2022
1 parent f954ab7 commit ad37d8f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default Vue.extend({
position absolute
top 0
left 0
z-index 3000
z-index 30000
box-shadow 0 2px 12px 0 rgba(0, 0, 0, 0.3)
</style>
37 changes: 30 additions & 7 deletions src/client/app/mobile/views/components/post-form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@
</div>
<div class="local-only" v-if="localOnly === true"><fa icon="heart"/> {{ $t('@.post-form.local-only-message') }}</div>
<input v-show="useCw" ref="cw" v-model="cw" :placeholder="$t('@.post-form.cw-placeholder')" v-autocomplete="{ model: 'cw' }">
<textarea v-model="text" ref="text" :disabled="posting" :placeholder="placeholder" v-autocomplete="{ model: 'text' }" @paste="onPaste"></textarea>
<div class="textarea">
<textarea v-model="text" ref="text" :disabled="posting" :placeholder="placeholder" v-autocomplete="{ model: 'text' }" @paste="onPaste"></textarea>
<button class="emoji" @click="emoji" ref="emoji">
<fa :icon="['far', 'laugh']"/>
</button>
</div>
<x-post-form-attaches class="attaches" :files="files"/>
<x-poll-editor v-if="poll" ref="poll" @destroyed="poll = false" @updated="onPollUpdate()"/>
<mk-uploader ref="uploader" @uploaded="attachMedia" @change="onChangeUploadings"/>
Expand Down Expand Up @@ -140,6 +145,30 @@ export default Vue.extend({
max-width 500px
margin 0 auto
>.textarea
> textarea
display block
padding 12px
margin 0
width 100%
font-size 16px
color var(--inputText)
background var(--mobilePostFormTextareaBg)
border none
border-radius 0
box-shadow 0 1px 0 0 var(--mobilePostFormDivider)
max-width 100%
min-width 100%
min-height 80px
> .emoji
position absolute
top 0
right 0
padding 10px
font-size 18px
color var(--text)
opacity 0.5
> .preview
padding 16px
Expand Down Expand Up @@ -187,7 +216,6 @@ export default Vue.extend({
z-index 1
> input
> textarea
display block
padding 12px
margin 0
Expand All @@ -202,11 +230,6 @@ export default Vue.extend({
&:disabled
opacity 0.5
> textarea
max-width 100%
min-width 100%
min-height 80px
> .mk-uploader
margin 8px 0 0 0
padding 8px
Expand Down

0 comments on commit ad37d8f

Please sign in to comment.