FIX: Styling update to VideoPage to support smaller screens;
This commit is contained in:
@@ -116,7 +116,7 @@ const ChatPanel: React.FC<ChatPanelProps> = ({
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
id="chat-panel"
|
id="chat-panel"
|
||||||
className="max-w-[30vw] h-[83vh] flex flex-col rounded-lg p-[2vh] justify-between"
|
className="max-w-[30vw] max-h-[83vh] flex flex-col rounded-lg p-[2vh] justify-between"
|
||||||
style={{ gridArea: "1 / 2 / 3 / 3" }}
|
style={{ gridArea: "1 / 2 / 3 / 3" }}
|
||||||
>
|
>
|
||||||
{/* Chat Header */}
|
{/* Chat Header */}
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ const VideoPlayer: React.FC = () => {
|
|||||||
muted: true,
|
muted: true,
|
||||||
fluid: true,
|
fluid: true,
|
||||||
responsive: true,
|
responsive: true,
|
||||||
|
aspectRatio: "16:9",
|
||||||
liveui: true,
|
liveui: true,
|
||||||
sources: [
|
sources: [
|
||||||
{
|
{
|
||||||
@@ -58,7 +59,7 @@ const VideoPlayer: React.FC = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="min-w-[65vw] w-full h-full flex justify-center items-center bg-gray-900 rounded-lg">
|
<div className="min-w-[65vw] w-full h-full flex justify-center items-center bg-gray-900 rounded-lg">
|
||||||
<div ref={videoRef} className="w-full max-w-[80vw] self-center" />
|
<div ref={videoRef} className="w-full max-w-[160vh] self-center" />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -47,9 +47,9 @@ const HomePage: React.FC<HomePageProps> = ({ variant = "default" }) => {
|
|||||||
onClick={handleStreamClick}
|
onClick={handleStreamClick}
|
||||||
extraClasses="bg-red-950/60"
|
extraClasses="bg-red-950/60"
|
||||||
>
|
>
|
||||||
<Button extraClasses="absolute right-10" onClick={() => navigate("/")}>
|
{/* <Button extraClasses="absolute right-10" onClick={() => navigate("/")}>
|
||||||
Show More . . .
|
Show More . . .
|
||||||
</Button>
|
</Button> */}
|
||||||
</ListRow>
|
</ListRow>
|
||||||
|
|
||||||
{/* If Personalised_HomePage, display Categories the logged-in user follows. Else, trending categories. */}
|
{/* If Personalised_HomePage, display Categories the logged-in user follows. Else, trending categories. */}
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ const VideoPage: React.FC<VideoPageProps> = ({ streamerId }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<SocketProvider>
|
<SocketProvider>
|
||||||
<div id="videoPage" className="w-full h-full bg-gray-900 flex flex-col">
|
<div id="videoPage" className="w-full h-full min-h-screen bg-gray-900 flex flex-col">
|
||||||
<Navbar />
|
<Navbar />
|
||||||
|
|
||||||
<div
|
<div
|
||||||
@@ -149,7 +149,7 @@ const VideoPage: React.FC<VideoPageProps> = ({ streamerId }) => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Stream Title */}
|
{/* Stream Title */}
|
||||||
<div className="flex flex-col items-start min-w-[45%] max-w-[60%] mx-12 text-pretty">
|
<div className="flex flex-col items-start min-w-fit max-w-[60%] mx-8 text-wrap">
|
||||||
<h1 className="text-[1rem] lg:text-[1.25em] xl:text-[1.5em] font-bold">
|
<h1 className="text-[1rem] lg:text-[1.25em] xl:text-[1.5em] font-bold">
|
||||||
{streamData ? streamData.streamTitle : "Loading..."}
|
{streamData ? streamData.streamTitle : "Loading..."}
|
||||||
</h1>
|
</h1>
|
||||||
|
|||||||
Reference in New Issue
Block a user