From 8ea8c9b3685aae67d26c23e44757ff065a694e9d Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Mon, 26 Oct 2026 14:23:51 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=87=BC=EC=B8=A0=20=EC=A0=84=EC=B2=B4?= =?UTF-8?q?=20=ED=99=94=EB=A9=B4=20=EC=B0=BD=EC=97=90=EC=84=9C=20=EC=98=81?= =?UTF-8?q?=EC=83=81=EC=9D=B4=20=ED=99=94=EB=A9=B4=EB=B3=B4=EB=8B=A4=20?= =?UTF-8?q?=EC=BB=A4=EC=A0=B8=20=ED=99=95=EB=8C=80=C2=B7=EC=9E=98=EB=A0=A4?= =?UTF-8?q?=20=EB=B3=B4=EC=9D=B4=EB=8D=98=20=EB=AC=B8=EC=A0=9C=20=E2=80=94?= =?UTF-8?q?=20=EB=82=A8=EC=9D=80=20=EB=86=92=EC=9D=B4=C2=B7=EB=84=88?= =?UTF-8?q?=EB=B9=84=20=EC=95=88=EC=97=90=209:16=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EB=A7=9E=EC=B6=94=EA=B3=A0,=20=EC=98=81=EC=83=81=EC=9D=B4=20?= =?UTF-8?q?=EB=9C=A8=EA=B8=B0=20=EC=A0=84=EC=97=94=20=ED=91=9C=EC=A7=80?= =?UTF-8?q?=EB=A5=BC=20=EA=B9=94=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/b/Shorts.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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
{items.map((s, i) => (
- {i === at ? ( -