Commit 627439f1 authored by Edijs Bov's avatar Edijs Bov

Show gallery first before attachments

parent d6f9f34a
Pipeline #7697 passed with stages
in 3 minutes and 26 seconds
......@@ -101,6 +101,12 @@
</div>
<div v-if="status.attachments && (!hideSubjectStatus || showingLongSubject)" class="attachments media-body">
<gallery
v-if="galleryAttachments.length > 0"
:nsfw="nsfwClickthrough"
:attachments="galleryAttachments"
:setMedia="setMedia()"
/>
<attachment
class="non-gallery"
v-for="attachment in nonGalleryAttachments"
......@@ -111,12 +117,6 @@
:setMedia="setMedia()"
:key="attachment.id"
/>
<gallery
v-if="galleryAttachments.length > 0"
:nsfw="nsfwClickthrough"
:attachments="galleryAttachments"
:setMedia="setMedia()"
/>
</div>
<div v-if="status.card && !hideSubjectStatus && !noHeading" class="link-preview media-body">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment