dongsik22 Claude Opus 4.7 (1M context) commited on
Commit
81b39d6
·
1 Parent(s): 36595e8

fix: 모바일 재생바 컴팩트화 + 풀스크린 가로 회전 잠금

Browse files

- 모바일(≤640px) 인라인 재생바에서 볼륨 슬라이더 숨기고 음소거 아이콘만 표시, 패딩·간격·시간폭 축소로 ⋮ 등 우측 버튼 잘림 해결
- 풀스크린 진입 시 orientation lock을 portrait → landscape로 변경

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Files changed (1) hide show
  1. index.html +13 -3
index.html CHANGED
@@ -715,6 +715,16 @@
715
  .stats-modal .stat-row:last-of-type { border-bottom: 0; }
716
  .stats-modal .stat-row b { color: var(--accent2); }
717
 
 
 
 
 
 
 
 
 
 
 
718
  </style>
719
  </head>
720
  <body>
@@ -2324,16 +2334,16 @@ function closeAddModal() { $('#addModal').classList.remove('show'); }
2324
  showControls();
2325
  // 저장된 줌이 있으면 자동 복원
2326
  restoreSavedZoom();
2327
- // 모바일: 풀스크린 진입 시 세로 잠금 (자동 가로 회전 방지)
2328
  // Chrome Android 지원, iOS Safari 미지원(권한 없음) — 실패해도 무시
2329
  if (isMobile() && screen.orientation && typeof screen.orientation.lock === 'function') {
2330
- screen.orientation.lock('portrait').catch(() => {});
2331
  }
2332
  } else {
2333
  wrap.classList.remove('show-controls', 'hide-cursor');
2334
  clearTimeout(hideTimer);
2335
  zoom = 1; tx = 0; ty = 0; apply();
2336
- // 풀스크린 종료 시 세로 잠금 해제
2337
  if (screen.orientation && typeof screen.orientation.unlock === 'function') {
2338
  try { screen.orientation.unlock(); } catch {}
2339
  }
 
715
  .stats-modal .stat-row:last-of-type { border-bottom: 0; }
716
  .stats-modal .stat-row b { color: var(--accent2); }
717
 
718
+ /* ───── 모바일: 재생바 컴팩트 ───── */
719
+ @media (max-width: 640px) {
720
+ /* 풀스크린이 아닌 모바일 인라인 컨트롤바 */
721
+ .video-wrap:not(:fullscreen):not(:-webkit-full-screen) .zoom-ctrl { gap: 6px; padding: 8px 8px 6px; }
722
+ .video-wrap:not(:fullscreen):not(:-webkit-full-screen) .zoom-ctrl .zc-btn { font-size: 16px; padding: 4px 6px; }
723
+ .video-wrap:not(:fullscreen):not(:-webkit-full-screen) .zoom-ctrl .zc-time { min-width: 0; font-size: 11px; white-space: nowrap; }
724
+ /* 볼륨 슬라이더 숨김 — 음소거 아이콘만 노출 */
725
+ .video-wrap:not(:fullscreen):not(:-webkit-full-screen) .zoom-ctrl .zc-vol { display: none; }
726
+ }
727
+
728
  </style>
729
  </head>
730
  <body>
 
2334
  showControls();
2335
  // 저장된 줌이 있으면 자동 복원
2336
  restoreSavedZoom();
2337
+ // 모바일: 풀스크린 진입 시 가로 잠금 (영상 시청에 최적화)
2338
  // Chrome Android 지원, iOS Safari 미지원(권한 없음) — 실패해도 무시
2339
  if (isMobile() && screen.orientation && typeof screen.orientation.lock === 'function') {
2340
+ screen.orientation.lock('landscape').catch(() => {});
2341
  }
2342
  } else {
2343
  wrap.classList.remove('show-controls', 'hide-cursor');
2344
  clearTimeout(hideTimer);
2345
  zoom = 1; tx = 0; ty = 0; apply();
2346
+ // 풀스크린 종료 시 회전 잠금 해제
2347
  if (screen.orientation && typeof screen.orientation.unlock === 'function') {
2348
  try { screen.orientation.unlock(); } catch {}
2349
  }