diff --git a/components/status/StatusMedia.vue b/components/status/StatusMedia.vue index 182e0566..0b92183c 100644 --- a/components/status/StatusMedia.vue +++ b/components/status/StatusMedia.vue @@ -6,10 +6,20 @@ const { status, isPreview = false } = defineProps<{ fullSize?: boolean isPreview?: boolean }>() + +const gridColumnNumber = computed(() => { + const num = status.mediaAttachments.length + if (num <= 1) + return 1 + else if (num <= 4) + return 2 + else + return 3 +})