Fix PiP aspect ratio to match request video

Co-authored-by: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com>
This commit is contained in:
Fedor Indutny 2024-05-13 13:05:46 -07:00 committed by GitHub
parent b36604bf31
commit 101405891d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View file

@ -3719,7 +3719,6 @@ button.module-image__border-overlay:focus {
}
}
.module-ongoing-call {
$local-preview-width: 108px;
$local-preview-height: 80px;
&__remote-video-enabled {
@ -4216,7 +4215,7 @@ button.module-image__border-overlay:focus {
margin-inline: 0 16px;
overflow: hidden;
position: relative;
width: $local-preview-width;
width: $calling-local-preview-width;
&--active {
box-shadow: 0px 4px 14px 0px $color-black-alpha-40;

View file

@ -259,6 +259,9 @@ $ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
$calling-background-color: $color-gray-90;
// Maintain aspect ratio 960x720 with $local-preview-height
$calling-local-preview-width: 106.67px;
// General
$z-index-negative: -1;

View file

@ -111,9 +111,7 @@
}
.CallControls__OuterSpacer {
// Defined in _modules but duplicated here for ease of refactor
$local-preview-width: 108px;
flex-basis: calc($local-preview-width + 16px);
flex-basis: calc($calling-local-preview-width + 16px);
}
.CallControls__ReactionPickerContainer {