diff --git a/frontend/src/b/Shorts.tsx b/frontend/src/b/Shorts.tsx index 351d40b..4a97374 100644 --- a/frontend/src/b/Shorts.tsx +++ b/frontend/src/b/Shorts.tsx @@ -11,6 +11,9 @@ const CARD_W = 120 const PLAYER_W = 200 const SCALE = (CARD_W / PLAYER_W) * 1.4 +// 전체 화면 창의 영상 칸: 닫기 줄 아래 남은 높이와 화면 너비 안에 9:16으로 맞춘다 +const FIT = { width: 'min(100vw, calc((100dvh - env(safe-area-inset-top, 0px) - 52px) * 9 / 16))', aspectRatio: '9 / 16' } + function embed(id: string, controls: boolean) { const q = new URLSearchParams({ autoplay: '1', mute: '1', playsinline: '1', loop: '1', playlist: id, controls: controls ? '1' : '0', rel: '0', modestbranding: '1' }) return `https://www.youtube-nocookie.com/embed/${id}?${q}` @@ -126,11 +129,12 @@ function ShortsViewer({ items, start, onClose }: { items: ShortItem[]; start: nu
- )}
+
+ {i === at && (
+
+ )}
+