diff --git a/src/routes/_components/status/Media.html b/src/routes/_components/status/Media.html
index 15dffbf6..12a49efd 100644
--- a/src/routes/_components/status/Media.html
+++ b/src/routes/_components/status/Media.html
@@ -1,21 +1,4 @@
-{#if type === 'video' || type === 'audio'}
- {#if blurhash}
- {#if type === 'video'}
-
-
-
- {/if}
- {:else}
+{#if (type === 'video' && !blurhash) || type === 'audio'}
{/if}
- {/if}
{:else}
- {:elseif type === 'gifv'}
+ {:elseif type === 'gifv' && !blurhash}
store,
computed: {
- computedClass: ({ sensitiveShown, $largeInlineMedia }) => classname(
+ computedClass: ({ sensitiveShown, oddCols, twoCols, $largeInlineMedia }) => classname(
'status-sensitive-media-container',
sensitiveShown ? 'status-sensitive-media-shown' : 'status-sensitive-media-hidden',
+ oddCols && 'odd-cols',
+ twoCols && 'two-cols',
$largeInlineMedia ? 'not-grouped-images' : 'grouped-images'
),
mediaAttachments: ({ originalStatus }) => originalStatus.media_attachments,
@@ -233,7 +236,21 @@
sensitiveMediaIconClass: ({ canUseBlurhash }) => classname(
'status-sensitive-media-svg',
canUseBlurhash && 'status-sensitive-media-svg-transparent'
- )
+ ),
+ nCols:
+ ({ mediaAttachments, $largeInlineMedia }) => {
+ return (!$largeInlineMedia && mediaAttachments.length > 1) ? 2 : 1
+ },
+ oddCols:
+ ({ mediaAttachments }) => {
+ return (mediaAttachments.length > 1 && (mediaAttachments.length % 2))
+ },
+
+ twoCols:
+ ({ mediaAttachments }) => {
+ return (mediaAttachments.length === 2)
+ }
+
},
methods: {
toggleSensitiveMedia () {