Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
digitalPerson-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
digitalPerson
digitalPerson-fe
Commits
6fa9631a
Commit
6fa9631a
authored
Sep 30, 2024
by
Dazzle Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 视频数字人图片固定高度缩放
parent
dae24d24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
preview-content.vue
src/views/creation/components/preview-content.vue
+4
-4
No files found.
src/views/creation/components/preview-content.vue
View file @
6fa9631a
...
@@ -42,9 +42,9 @@ const resizeObserver = new ResizeObserver((entries) => {
...
@@ -42,9 +42,9 @@ const resizeObserver = new ResizeObserver((entries) => {
const
isLandscape
=
computed
(()
=>
digitalCreationStore
.
width
>
digitalCreationStore
.
height
)
const
isLandscape
=
computed
(()
=>
digitalCreationStore
.
width
>
digitalCreationStore
.
height
)
const
digitalHumanWidth
=
computed
(
//
const digitalHumanWidth = computed(
()
=>
(
digitalCreationStore
.
w
*
previewContentWidth
.
value
)
/
(
isLandscape
.
value
?
1920
:
1080
),
//
() => (digitalCreationStore.w * previewContentWidth.value) / (isLandscape.value ? 1920 : 1080),
)
//
)
const
digitalHumanHeight
=
computed
(
const
digitalHumanHeight
=
computed
(
()
=>
(
digitalCreationStore
.
h
*
previewContentHeight
.
value
)
/
(
isLandscape
.
value
?
1080
:
1920
),
()
=>
(
digitalCreationStore
.
h
*
previewContentHeight
.
value
)
/
(
isLandscape
.
value
?
1080
:
1920
),
)
)
...
@@ -159,7 +159,7 @@ function controlAudio() {
...
@@ -159,7 +159,7 @@ function controlAudio() {
:src=
"digitalCreationStore.inputImageUrl"
:src=
"digitalCreationStore.inputImageUrl"
class=
"absolute max-w-none object-cover"
class=
"absolute max-w-none object-cover"
:style=
"
{
:style=
"
{
width: `${digitalHumanWidth}px`,
//
width: `${digitalHumanWidth}px`,
height: `${digitalHumanHeight}px`,
height: `${digitalHumanHeight}px`,
left: `${digitalHumanLeft}px`,
left: `${digitalHumanLeft}px`,
top: `${digitalHumanTop}px`,
top: `${digitalHumanTop}px`,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment