Fix video thumbnail selector exceeding the modal size (#891)

## Issue
- 655 "Take a snapshot from your video" controls off-screen
- It also exceeds horizontally on mobile.

## Fix
Just add css constraints.
This commit is contained in:
infinite-persistence 2022-02-16 06:50:41 -08:00 committed by GitHub
parent 80d4d8c57c
commit 24d23b8cc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View file

@ -87,7 +87,14 @@ function ModalAutoGenerateThumbnail(props: Props) {
onAborted={closeModal}
>
<p className="section__subtitle">{__('Pause at any time to select a thumbnail from your video')}.</p>
<video ref={playerRef} src={videoSrc} onLoadedMetadata={resize} onError={onError} controls />
<video
className="video-thumbnail-generator"
ref={playerRef}
src={videoSrc}
onLoadedMetadata={resize}
onError={onError}
controls
/>
</Modal>
);
}

View file

@ -861,6 +861,11 @@ $control-bar-icon-size: 0.8rem;
display: none !important; // yes this is dumb, but this was broken and the above CSS was overriding
}
.video-thumbnail-generator {
width: 100%;
max-height: 30vh;
}
// ****************************************************************************
// Autoplay Countdown
// ****************************************************************************