Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
936a5225
authored
Feb 02, 2026
by
Seefs
Committed by
GitHub
Feb 02, 2026
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2764 from feitianbubu/pr/4baa0f472b6f35ce3426cd8ea0d13f38e2f4eb81
feat: auto-adapt video modal
parents
319a909d
eadae84d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
web/src/components/table/task-logs/modals/ContentModal.jsx
+12
-4
No files found.
web/src/components/table/task-logs/modals/ContentModal.jsx
View file @
936a5225
...
@@ -120,7 +120,7 @@ const ContentModal = ({
...
@@ -120,7 +120,7 @@ const ContentModal = ({
}
}
return
(
return
(
<
div
style=
{
{
position
:
'relative'
}
}
>
<
div
style=
{
{
position
:
'relative'
,
height
:
'100%'
}
}
>
{
isLoading
&&
(
{
isLoading
&&
(
<
div
<
div
style=
{
{
style=
{
{
...
@@ -137,7 +137,13 @@ const ContentModal = ({
...
@@ -137,7 +137,13 @@ const ContentModal = ({
<
video
<
video
src=
{
modalContent
}
src=
{
modalContent
}
controls
controls
style=
{
{
width
:
'100%'
}
}
style=
{
{
width
:
'100%'
,
height
:
'100%'
,
maxWidth
:
'100%'
,
maxHeight
:
'100%'
,
objectFit
:
'contain'
,
}
}
autoPlay
autoPlay
crossOrigin=
'anonymous'
crossOrigin=
'anonymous'
onError=
{
handleVideoError
}
onError=
{
handleVideoError
}
...
@@ -155,11 +161,13 @@ const ContentModal = ({
...
@@ -155,11 +161,13 @@ const ContentModal = ({
onCancel=
{
()
=>
setIsModalOpen
(
false
)
}
onCancel=
{
()
=>
setIsModalOpen
(
false
)
}
closable=
{
null
}
closable=
{
null
}
bodyStyle=
{
{
bodyStyle=
{
{
height
:
isVideo
?
'450px'
:
'400px'
,
height
:
isVideo
?
'70vh'
:
'400px'
,
maxHeight
:
'80vh'
,
overflow
:
'auto'
,
overflow
:
'auto'
,
padding
:
isVideo
&&
videoError
?
'0'
:
'24px'
,
padding
:
isVideo
&&
videoError
?
'0'
:
'24px'
,
}
}
}
}
width=
{
800
}
width=
{
isVideo
?
'90vw'
:
800
}
style=
{
isVideo
?
{
maxWidth
:
960
}
:
undefined
}
>
>
{
isVideo
?
(
{
isVideo
?
(
renderVideoContent
()
renderVideoContent
()
...
...
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