diff --git a/app/static/public/css/video.css b/app/static/public/css/video.css index ced9450..be3b5d8 100644 --- a/app/static/public/css/video.css +++ b/app/static/public/css/video.css @@ -11,6 +11,7 @@ body { background-color: var(--video-bg); background-image: none; + overflow-x: hidden; } .video-header-row { @@ -658,6 +659,8 @@ body { } .edit-preview-wrap { + width: 100%; + max-width: 100%; border-radius: 10px; background: #000; overflow: hidden; @@ -665,9 +668,13 @@ body { } #editVideo { + display: block; width: 100%; + height: auto; + max-width: 100%; max-height: 420px; background: #000; + object-fit: contain; } .edit-slider-wrap { @@ -778,9 +785,13 @@ body { #mergeVideoPreviewA, #mergeVideoPreviewB { + display: block; width: 100%; + height: auto; + max-width: 100%; max-height: 240px; background: #000; + object-fit: contain; } #mergeTimelineA, @@ -1035,7 +1046,12 @@ html[data-theme='dark'] .cache-video-item.is-active .cache-video-thumb-wrap { } .video-item video { + display: block; + width: 100%; + height: auto; + max-width: 100%; max-height: 240px; + object-fit: contain; } .video-item-actions { @@ -1049,8 +1065,16 @@ html[data-theme='dark'] .cache-video-item.is-active .cache-video-thumb-wrap { font-size: 10px; } + .edit-preview-wrap { + max-height: 62vh; + } + #editVideo { - max-height: 260px; + max-height: 60vh; + } + + .manual-merge-col .edit-preview-wrap { + max-height: 44vh; } .manual-merge-grid { diff --git a/app/static/public/js/video.js b/app/static/public/js/video.js index a75d75d..dd23882 100644 --- a/app/static/public/js/video.js +++ b/app/static/public/js/video.js @@ -1182,6 +1182,8 @@ if (videoEl) { videoEl.controls = true; videoEl.preload = 'metadata'; + videoEl.setAttribute('playsinline', ''); + videoEl.setAttribute('webkit-playsinline', ''); const source = videoEl.querySelector('source'); if (source && source.getAttribute('src')) { videoUrl = source.getAttribute('src'); @@ -1199,7 +1201,7 @@ const body = container.querySelector('.video-item-body'); if (!body) return; const actions = body.querySelector('.video-item-actions-overlay'); - body.innerHTML = `\n \n `; + body.innerHTML = `\n \n `; if (actions) { body.appendChild(actions); } diff --git a/app/static/public/pages/video.html b/app/static/public/pages/video.html index 995640d..b7490e6 100644 --- a/app/static/public/pages/video.html +++ b/app/static/public/pages/video.html @@ -151,7 +151,7 @@