mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-15 06:27:34 -07:00
[Client:Desktop] Add the 'Insert The Cat' button
This commit is contained in:
parent
e4a62a48cf
commit
a1a2c9c227
1 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
<mk-uploader ref="uploader"></mk-uploader>
|
||||
<button ref="upload" title="PCからファイルを添付" onclick={ selectFile }><i class="fa fa-upload"></i></button>
|
||||
<button ref="drive" title="ドライブからファイルを添付" onclick={ selectFileFromDrive }><i class="fa fa-cloud"></i></button>
|
||||
<button class="cat" title="Insert The Cat" onclick={ cat }><i class="fa fa-smile-o"></i></button>
|
||||
<p class="text-count { over: refs.text.value.length > 500 }">のこり{ 500 - refs.text.value.length }文字</p>
|
||||
<button class={ wait: wait } ref="submit" disabled={ wait || (refs.text.value.length == 0 && files.length == 0) } onclick={ post }>{ wait ? '投稿中' : opts.reply ? '返信' : '投稿' }
|
||||
<mk-ellipsis if={ wait }></mk-ellipsis>
|
||||
|
@ -237,6 +238,7 @@
|
|||
|
||||
[ref='upload']
|
||||
[ref='drive']
|
||||
.cat
|
||||
display inline-block
|
||||
cursor pointer
|
||||
padding 0
|
||||
|
@ -425,5 +427,8 @@
|
|||
.then ~>
|
||||
@wait = false
|
||||
@update!
|
||||
|
||||
@cat = ~>
|
||||
@refs.text.value = @refs.text.value + '(=^・・^=)'
|
||||
</script>
|
||||
</mk-post-form>
|
||||
|
|
Loading…
Reference in a new issue