Skip to content

Commit ed57e78

Browse files
committed
💄 [Design]: 시청 페이지 비디오 비율 조정
1 parent 2826dcd commit ed57e78

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

apps/client/src/pages/Broadcast/BroadcastPlayer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,20 +127,20 @@ function BroadcastPlayer({
127127
autoPlay
128128
muted
129129
playsInline
130-
className={`absolute top-0 left-0 w-full h-full bg-surface-alt ${isVideoEnabled ? '' : 'hidden'}`}
130+
className={`absolute top-0 left-0 w-full h-full bg-black ${isVideoEnabled ? '' : 'hidden'}`}
131131
/>
132132
<video
133133
ref={screenShareRef}
134134
autoPlay
135135
muted
136136
playsInline
137-
className={`absolute top-0 left-0 w-full h-full bg-surface-alt ${isScreenSharing ? '' : 'hidden'}`}
137+
className={`absolute top-0 left-0 w-full h-full bg-black ${isScreenSharing ? '' : 'hidden'}`}
138138
/>
139139
<canvas
140140
ref={canvasRef}
141141
width={RESOLUTION_OPTIONS['high'].width}
142142
height={RESOLUTION_OPTIONS['high'].height}
143-
className={`absolute top-0 left-0 w-full h-full bg-surface-alt object-cover ${
143+
className={`absolute top-0 left-0 w-full h-full bg-black object-cover ${
144144
!isScreenSharing || !isVideoEnabled ? 'hidden' : ''
145145
}`}
146146
/>

apps/client/src/pages/Live/LiveCamperInfo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function LiveCamperInfo({ liveId }: { liveId: string }) {
1919
) : isLoading ? (
2020
<LoadingCharacter size={100} />
2121
) : (
22-
<div className="flex flex-row justify-between">
22+
<div className="flex flex-row h-full w-full justify-between">
2323
<div className="flex flex-col gap-4 pr-24">
2424
{/* 제목 */}
2525
<h1 className="text-text-strong font-bold text-2xl">{data.title}</h1>

apps/client/src/pages/Live/LivePlayer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function LivePlayer({ mediaStream, socket, transportId, errors }: LivePlayerProp
8585
ref={videoRef}
8686
autoPlay
8787
muted={isAudioEnabled ? false : true}
88-
className="w-full max-w-[1280px] h-auto"
88+
className="absolute top-0 left-0 h-full w-full bg-surface-alt"
8989
/>
9090
<div className="absolute bottom-4 left-0 right-0 px-6 text-text-default h-6 flex flex-row justify-between items-center">
9191
<div className="flex flex-row space-x-6 items-center">

apps/client/src/pages/Live/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,16 @@ export default function Live() {
6060
<ErrorCharacter size={400} message="방 정보가 없습니다." />
6161
) : (
6262
<>
63-
<div className="flex flex-col flex-grow gap-4 h-full ml-8 mb-5">
63+
<div className="flex flex-col flex-1 gap-4 ml-8">
6464
<LivePlayer
6565
mediaStream={mediaStream}
6666
transportId={transportInfo?.transportId}
6767
socket={socket}
6868
errors={{ socketError, transportError, consumerError }}
6969
/>
70-
<LiveCamperInfo liveId={liveId} />
70+
<div className="flex justify-center items-center h-36 w-full">
71+
<LiveCamperInfo liveId={liveId} />
72+
</div>
7173
</div>
7274
<div className="flex h-full w-80 pr-5">
7375
<ChatContainer roomId={liveId} isProducer={false} />

0 commit comments

Comments
 (0)