moonlantern1 commited on
Commit
b0479e3
·
verified ·
1 Parent(s): f14fa4b

Fix fullscreen mobile video containment

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -582,6 +582,8 @@ INDEX_HTML = r"""<!DOCTYPE html>
582
  @keyframes slideUp { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
583
  .modal-video { width: 100%; aspect-ratio: 9/16; display: flex; align-items: center; justify-content: center; position: relative; background:#000; }
584
  .modal-video video { width:100%; height:100%; object-fit:cover; background:#000; display:block; }
 
 
585
  .modal-footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap:12px; }
586
  .modal-clip-label { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 500; }
587
  .modal-actions { display:flex; align-items:center; gap:8px; }
 
582
  @keyframes slideUp { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
583
  .modal-video { width: 100%; aspect-ratio: 9/16; display: flex; align-items: center; justify-content: center; position: relative; background:#000; }
584
  .modal-video video { width:100%; height:100%; object-fit:cover; background:#000; display:block; }
585
+ video:fullscreen { width:100vw !important; height:100vh !important; object-fit:contain !important; background:#000 !important; }
586
+ video:-webkit-full-screen { width:100vw !important; height:100vh !important; object-fit:contain !important; background:#000 !important; }
587
  .modal-footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap:12px; }
588
  .modal-clip-label { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 500; }
589
  .modal-actions { display:flex; align-items:center; gap:8px; }