mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-25 10:46:17 +03:00
feat: implement a small preview card when there are media attachments (#390)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
This commit is contained in:
parent
7dce46e651
commit
043bfea299
2 changed files with 2 additions and 2 deletions
|
@ -120,7 +120,7 @@ const showRebloggedByAvatarOnAvatar = rebloggedBy && avatarOnAvatar && reblogged
|
||||||
minimized
|
minimized
|
||||||
:class="status.visibility === 'direct' ? 'pb4' : ''"
|
: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>
|
</StatusSpoiler>
|
||||||
<StatusCard
|
<StatusCard
|
||||||
v-if="status.reblog"
|
v-if="status.reblog"
|
||||||
|
|
|
@ -41,7 +41,7 @@ const visibility = $computed(() => STATUS_VISIBILITIES.find(v => v.value === sta
|
||||||
:status="status"
|
:status="status"
|
||||||
:class="status.visibility === 'direct' ? 'pb4' : ''"
|
: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>
|
</StatusSpoiler>
|
||||||
</div>
|
</div>
|
||||||
<div flex="~ gap-1" items-center text-secondary text-sm>
|
<div flex="~ gap-1" items-center text-secondary text-sm>
|
||||||
|
|
Loading…
Reference in a new issue