mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 12:53:11 +02:00
enhance(client): 添付ファイルが5つ以上あるときは折りたたむように
This commit is contained in:
parent
8bd2d6328a
commit
4a0b0b135a
1 changed files with 2 additions and 1 deletions
|
@ -188,7 +188,8 @@ const isMyRenote = $i && ($i.id === note.userId);
|
||||||
const showContent = ref(false);
|
const showContent = ref(false);
|
||||||
const isLong = (appearNote.cw == null && appearNote.text != null && (
|
const isLong = (appearNote.cw == null && appearNote.text != null && (
|
||||||
(appearNote.text.split('\n').length > 9) ||
|
(appearNote.text.split('\n').length > 9) ||
|
||||||
(appearNote.text.length > 500)
|
(appearNote.text.length > 500) ||
|
||||||
|
(appearNote.files.length >= 5)
|
||||||
));
|
));
|
||||||
const collapsed = ref(appearNote.cw == null && isLong);
|
const collapsed = ref(appearNote.cw == null && isLong);
|
||||||
const isDeleted = ref(false);
|
const isDeleted = ref(false);
|
||||||
|
|
Loading…
Reference in a new issue