Skip to content

Commit

Permalink
fix: set a initial height for video div (close AlistGo/alist#6095)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Mar 1, 2024
1 parent 9984ea5 commit 088e7ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/home/previews/aliyun_video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ const Preview = () => {
const [warnVisible, setWarnVisible] = createSignal(false)
return (
<VideoBox onAutoNextChange={setAutoNext}>
<Box w="$full" id="video-player" />
<Box w="$full" h="60vh" id="video-player" />
<Show when={warnVisible()}>
<Center w="100%" h="60vh" bgColor="black">
<TiWarning size="4rem" />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/home/previews/video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ const Preview = () => {
const [autoNext, setAutoNext] = createSignal()
return (
<VideoBox onAutoNextChange={setAutoNext}>
<Box w="$full" id="video-player" />
<Box w="$full" h="60vh" id="video-player" />
</VideoBox>
)
}
Expand Down

0 comments on commit 088e7ec

Please sign in to comment.