Merge pull request #13655 from JoVictorNunes/issue-12840

improvement: video preview modal
This commit is contained in:
Anton Georgiev 2021-11-09 09:51:17 -05:00 committed by GitHub
commit d725ee7734
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 8 deletions

View File

@ -13,7 +13,7 @@
} }
.content { .content {
overflow: auto; overflow: visible;
color: var(--color-text); color: var(--color-text);
font-weight: normal; font-weight: normal;
padding: var(--line-height-computed) 0; padding: var(--line-height-computed) 0;

View File

@ -812,7 +812,10 @@ class VideoPreview extends Component {
return ( return (
<Modal <Modal
overlayClassName={styles.overlay} overlayClassName={styles.overlay}
className={styles.modal} className={cx({
[styles.modal]: true,
[styles.modalPhone]: deviceInfo.isPhone,
})}
onRequestClose={this.handleProceed} onRequestClose={this.handleProceed}
hideBorder hideBorder
contentLabel={intl.formatMessage(intlMessages.webcamSettingsTitle)} contentLabel={intl.formatMessage(intlMessages.webcamSettingsTitle)}

View File

@ -94,21 +94,20 @@
.videoCol { .videoCol {
@extend .col; @extend .col;
align-items: center; align-items: center;
@include mq($landscape) {
width: 33.3%;
}
} }
.content { .content {
display: flex; display: flex;
min-height: 14rem;
max-height: 50vh;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
@include mq($small-only) { @include mq($small-only) {
flex-direction: column; flex-direction: column;
height: unset;
margin: 0; margin: 0;
min-height: 12rem;
max-height: unset;
} }
} }
@ -129,8 +128,22 @@
} }
.modal { .modal {
padding: 1rem;
@extend .modal; @extend .modal;
padding: 1rem;
min-height: 25rem;
max-height: 60vh;
@include mq($small-only) {
height: unset;
min-height: 22.5rem;
max-height: unset;
}
}
.modalPhone {
min-height: 100%;
min-width: 100%;
border-radius: 0;
} }
.overlay { .overlay {