Spaces:
Sleeping
Sleeping
Fix fullscreen mobile video containment
Browse files
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; }
|