mirror of
https://github.com/Qortal/q-tube.git
synced 2025-02-15 19:55:52 +00:00
Merge pull request #33 from QortalSeth/main
Layout of VideoContent.tsx and PlaylistContent.tsx changed to maximize Video Player size while maintaining aspect ratio.
This commit is contained in:
commit
95e132f641
@ -21,7 +21,7 @@ export const Playlists = ({
|
|||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
width: "100%",
|
width: "100%",
|
||||||
maxWidth: "25vw",
|
maxHeight: "30.94vw",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<CardContentContainerComment
|
<CardContentContainerComment
|
||||||
|
@ -447,24 +447,34 @@ export const PlaylistContent = () => {
|
|||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
display: "grid",
|
display: "grid",
|
||||||
gridTemplateColumns: "55vw 30vw",
|
gridTemplateColumns: "55vw 35vw",
|
||||||
width: "100vw",
|
width: "100vw",
|
||||||
gap: "5vw",
|
gap: "3vw",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{videoReference && (
|
{videoReference && (
|
||||||
<VideoPlayer
|
<Box
|
||||||
name={videoReference?.name}
|
sx={{
|
||||||
service={videoReference?.service}
|
aspectRatio: "16/9",
|
||||||
identifier={videoReference?.identifier}
|
}}
|
||||||
user={channelName}
|
>
|
||||||
jsonId={id}
|
<VideoPlayer
|
||||||
poster={videoCover || ""}
|
name={videoReference?.name}
|
||||||
nextVideo={nextVideo}
|
service={videoReference?.service}
|
||||||
onEnd={onEndVideo}
|
identifier={videoReference?.identifier}
|
||||||
autoPlay={doAutoPlay}
|
user={channelName}
|
||||||
ref={containerRef}
|
jsonId={id}
|
||||||
/>
|
poster={videoCover || ""}
|
||||||
|
nextVideo={nextVideo}
|
||||||
|
onEnd={onEndVideo}
|
||||||
|
autoPlay={doAutoPlay}
|
||||||
|
ref={containerRef}
|
||||||
|
videoStyles={{
|
||||||
|
videoContainer: { aspectRatio: "16 / 9" },
|
||||||
|
video: { aspectRatio: "16 / 9" },
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Box>
|
||||||
)}
|
)}
|
||||||
{playlistData && (
|
{playlistData && (
|
||||||
<Playlists
|
<Playlists
|
||||||
|
@ -402,18 +402,29 @@ export const VideoContent = () => {
|
|||||||
<VideoPlayerContainer
|
<VideoPlayerContainer
|
||||||
sx={{
|
sx={{
|
||||||
width: "55vw",
|
width: "55vw",
|
||||||
|
aspectRatio: "16/9",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{videoReference ? (
|
{videoReference ? (
|
||||||
<VideoPlayer
|
<Box
|
||||||
name={videoReference?.name}
|
sx={{
|
||||||
service={videoReference?.service}
|
aspectRatio: "16/9",
|
||||||
identifier={videoReference?.identifier}
|
}}
|
||||||
user={channelName}
|
>
|
||||||
jsonId={id}
|
<VideoPlayer
|
||||||
poster={videoCover || ""}
|
name={videoReference?.name}
|
||||||
ref={containerRef}
|
service={videoReference?.service}
|
||||||
/>
|
identifier={videoReference?.identifier}
|
||||||
|
user={channelName}
|
||||||
|
jsonId={id}
|
||||||
|
poster={videoCover || ""}
|
||||||
|
ref={containerRef}
|
||||||
|
videoStyles={{
|
||||||
|
videoContainer: { aspectRatio: "16 / 9" },
|
||||||
|
video: { aspectRatio: "16 / 9" },
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Box>
|
||||||
) : (
|
) : (
|
||||||
<img src={DeletedVideo} width={"100%"} height={"100%"} />
|
<img src={DeletedVideo} width={"100%"} height={"100%"} />
|
||||||
)}
|
)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user