feat: implement a small preview card when there are media attachments (#390)

Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
zio/stable
Ayo Ayco 2022-12-13 19:39:51 +01:00 committed by GitHub
parent 7dce46e651
commit 043bfea299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ const showRebloggedByAvatarOnAvatar = rebloggedBy && avatarOnAvatar && reblogged
minimized
:class="status.visibility === 'direct' ? 'pb4' : ''"
/>
<StatusPreviewCard v-if="status.card" :card="status.card" :class="status.visibility === 'direct' ? 'pb4' : ''" />
<StatusPreviewCard v-if="status.card" :card="status.card" :class="status.visibility === 'direct' ? 'pb4' : ''" :small-picture-only="status.mediaAttachments?.length > 0" />
</StatusSpoiler>
<StatusCard
v-if="status.reblog"

View File

@ -41,7 +41,7 @@ const visibility = $computed(() => STATUS_VISIBILITIES.find(v => v.value === sta
:status="status"
:class="status.visibility === 'direct' ? 'pb4' : ''"
/>
<StatusPreviewCard v-if="status.card" :card="status.card" :class="status.visibility === 'direct' ? 'pb4' : ''" />
<StatusPreviewCard v-if="status.card" :card="status.card" :class="status.visibility === 'direct' ? 'pb4' : ''" :small-picture-only="status.mediaAttachments?.length > 0" />
</StatusSpoiler>
</div>
<div flex="~ gap-1" items-center text-secondary text-sm>