diff --git a/components/status/StatusAttachment.vue b/components/status/StatusAttachment.vue index 34093f59..228c1586 100644 --- a/components/status/StatusAttachment.vue +++ b/components/status/StatusAttachment.vue @@ -26,6 +26,12 @@ const aspectRatio = computed(() => { return clamp(rawAspectRatio.value, 0.5, 2) return undefined }) + +const objectPosition = computed(() => { + return [attachment.meta?.focus?.x, attachment.meta?.focus?.y] + .map(v => v ? `${v * 100}%` : '50%') + .join(' ') +})