diff --git a/src/routes/_components/status/MediaAttachments.html b/src/routes/_components/status/MediaAttachments.html index bd37352c..55cafc4f 100644 --- a/src/routes/_components/status/MediaAttachments.html +++ b/src/routes/_components/status/MediaAttachments.html @@ -56,23 +56,18 @@ twoCols && 'two-cols', !$largeInlineMedia && 'grouped-images' ), - showBlurhash: - ({ sensitive, sensitiveShown, mediaAttachments }) => { - return sensitive && mediaAttachments.every(attachment => !!attachment.blurhash) ? !sensitiveShown : false - }, - 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) - } + showBlurhash: ({ sensitive, sensitiveShown, mediaAttachments }) => { + return sensitive && mediaAttachments.every(attachment => !!attachment.blurhash) ? !sensitiveShown : false + }, + 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) + } }, components: { Media diff --git a/src/routes/_components/status/StatusMediaAttachments.html b/src/routes/_components/status/StatusMediaAttachments.html index a7a86097..170946f2 100644 --- a/src/routes/_components/status/StatusMediaAttachments.html +++ b/src/routes/_components/status/StatusMediaAttachments.html @@ -237,20 +237,15 @@ '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) - } - + 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 () {