Commit 5fc3a3b7 authored by nick zheng's avatar nick zheng
parents 2be333bf 6fa9631a
......@@ -42,9 +42,9 @@ const resizeObserver = new ResizeObserver((entries) => {
const isLandscape = computed(() => digitalCreationStore.width > digitalCreationStore.height)
const digitalHumanWidth = computed(
() => (digitalCreationStore.w * previewContentWidth.value) / (isLandscape.value ? 1920 : 1080),
)
// const digitalHumanWidth = computed(
// () => (digitalCreationStore.w * previewContentWidth.value) / (isLandscape.value ? 1920 : 1080),
// )
const digitalHumanHeight = computed(
() => (digitalCreationStore.h * previewContentHeight.value) / (isLandscape.value ? 1080 : 1920),
)
......@@ -159,7 +159,7 @@ function controlAudio() {
:src="digitalCreationStore.inputImageUrl"
class="absolute max-w-none object-cover"
:style="{
width: `${digitalHumanWidth}px`,
// width: `${digitalHumanWidth}px`,
height: `${digitalHumanHeight}px`,
left: `${digitalHumanLeft}px`,
top: `${digitalHumanTop}px`,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment