Skip to content
Snippets Groups Projects
Commit e9cfa3da authored by syuilo's avatar syuilo
Browse files

投稿の文字数制限を緩和

parent e6c782c6
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ import event from '../../event';
/**
* 最大文字数
*/
const maxTextLength = 300;
const maxTextLength = 500;
/**
* 添付できるファイルの数
......
......@@ -12,7 +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>
<p class="text-count { over: refs.text.value.length &gt; 300 }">のこり{ 300 - refs.text.value.length }文字</p>
<p class="text-count { over: refs.text.value.length &gt; 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>
</button>
......
......@@ -2,7 +2,7 @@
<header>
<div>
<button class="cancel" onclick={ cancel }><i class="fa fa-times"></i></button>
<div><span class="text-count { over: refs.text.value.length &gt; 300 }">{ 300 - refs.text.value.length }</span>
<div><span class="text-count { over: refs.text.value.length &gt; 500 }">{ 500 - refs.text.value.length }</span>
<button class="submit" onclick={ post }>投稿</button>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment