fix: remove unused nCols computation (#1420)
This commit is contained in:
parent
ada6b9f699
commit
dd625b80a0
|
@ -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
|
||||
|
|
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue