1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Basic auto suggestion is working

This commit is contained in:
Zhiyuan Zheng
2020-11-09 01:04:47 +01:00
parent c417262528
commit d8d8a6c1fa
10 changed files with 161 additions and 4184 deletions

View File

@ -45,18 +45,20 @@ const Attachment: React.FC<Props> = ({
(width / media_attachments[0].meta.original.width) *
media_attachments[0].meta.original.height
break
case 'video':
attachment = (
<AttachmentVideo
media_attachments={media_attachments}
sensitive={sensitive}
width={width}
/>
)
attachmentHeight =
(width / media_attachments[0].meta.original.width) *
media_attachments[0].meta.original.height
break
// Support multiple video
// Supoort when video meta is empty
// case 'video':
// attachment = (
// <AttachmentVideo
// media_attachments={media_attachments}
// sensitive={sensitive}
// width={width}
// />
// )
// attachmentHeight =
// (width / media_attachments[0].meta.original.width) *
// media_attachments[0].meta.original.height
// break
// case 'audio':
// attachment = (
// <AttachmentAudio