Fix call participant emoji name display
This commit is contained in:
parent
951e39a8f7
commit
7fe17d2073
2 changed files with 40 additions and 23 deletions
|
@ -3813,6 +3813,26 @@ button.module-image__border-overlay:focus {
|
||||||
display: block;
|
display: block;
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.module-ongoing-call__group-call-remote-participant {
|
||||||
|
// Only apply container-type: size to grid column to prevent size collapse
|
||||||
|
// for implicitly sized participants (PiP)
|
||||||
|
container-type: size;
|
||||||
|
|
||||||
|
@container (min-width: 180px) or (min-height: 180px) {
|
||||||
|
.module-ongoing-call__group-call-remote-participant__footer {
|
||||||
|
padding-block: 0 14px;
|
||||||
|
padding-inline: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&--hand-raised {
|
||||||
|
.module-ongoing-call__group-call-remote-participant__footer {
|
||||||
|
padding-block: 0 8px;
|
||||||
|
padding-inline: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__overflow {
|
&__overflow {
|
||||||
|
@ -3841,9 +3861,16 @@ button.module-image__border-overlay:focus {
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
|
|
||||||
&__footer {
|
&__footer {
|
||||||
padding-block: 0 10px;
|
padding-block: 0 8px;
|
||||||
padding-inline: 10px;
|
padding-inline: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&--hand-raised {
|
||||||
|
.module-ongoing-call__group-call-remote-participant__footer {
|
||||||
|
padding-block: 0 6px;
|
||||||
|
padding-inline: 6px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__scroll-marker {
|
&__scroll-marker {
|
||||||
|
@ -3922,20 +3949,6 @@ button.module-image__border-overlay:focus {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.module-ongoing-call__group-call-remote-participant {
|
|
||||||
// Only apply container-type: size to grid/overflow column to prevent size collapse
|
|
||||||
// for implicitly sized participants (PiP)
|
|
||||||
container-type: size;
|
|
||||||
$group-call-remote-participant-footer-padding-large: 16px;
|
|
||||||
|
|
||||||
@container (min-width: 180px) or (min-height: 180px) {
|
|
||||||
.module-ongoing-call__group-call-remote-participant__footer {
|
|
||||||
padding-block: 0 $group-call-remote-participant-footer-padding-large;
|
|
||||||
padding-inline: $group-call-remote-participant-footer-padding-large;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__group-call--pagination-tile {
|
&__group-call--pagination-tile {
|
||||||
|
@ -3981,8 +3994,6 @@ button.module-image__border-overlay:focus {
|
||||||
transition: none;
|
transition: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
$group-call-remote-participant-footer-padding-medium: 12px;
|
|
||||||
|
|
||||||
&:after {
|
&:after {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -4048,8 +4059,8 @@ button.module-image__border-overlay:focus {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
padding-block: 0 $group-call-remote-participant-footer-padding-medium;
|
padding-block: 0 10px;
|
||||||
padding-inline: $group-call-remote-participant-footer-padding-medium;
|
padding-inline: 12px;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
z-index: $z-index-above-base;
|
z-index: $z-index-above-base;
|
||||||
|
@ -4065,7 +4076,7 @@ button.module-image__border-overlay:focus {
|
||||||
&__contact-name {
|
&__contact-name {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
line-height: 13px;
|
line-height: 18px;
|
||||||
color: $color-white;
|
color: $color-white;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
@ -4081,8 +4092,6 @@ button.module-image__border-overlay:focus {
|
||||||
|
|
||||||
&--hand-raised &__footer {
|
&--hand-raised &__footer {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
padding-block: 0 8px;
|
|
||||||
padding-inline: 8px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&--hand-raised &__info {
|
&--hand-raised &__info {
|
||||||
|
|
|
@ -369,6 +369,8 @@ export function GroupCallYourHandRaised(): JSX.Element {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const PARTICIPANT_EMOJIS = ['❤️', '🤔', '✨', '😂', '🦄'] as const;
|
||||||
|
|
||||||
// We generate these upfront so that the list is stable when you move the slider.
|
// We generate these upfront so that the list is stable when you move the slider.
|
||||||
const allRemoteParticipants = times(MAX_PARTICIPANTS).map(index => ({
|
const allRemoteParticipants = times(MAX_PARTICIPANTS).map(index => ({
|
||||||
aci: generateAci(),
|
aci: generateAci(),
|
||||||
|
@ -381,7 +383,13 @@ const allRemoteParticipants = times(MAX_PARTICIPANTS).map(index => ({
|
||||||
videoAspectRatio: Math.random() < 0.7 ? 1.3 : Math.random() * 0.4 + 0.6,
|
videoAspectRatio: Math.random() < 0.7 ? 1.3 : Math.random() * 0.4 + 0.6,
|
||||||
...getDefaultConversationWithServiceId({
|
...getDefaultConversationWithServiceId({
|
||||||
isBlocked: index === 10 || index === MAX_PARTICIPANTS - 1,
|
isBlocked: index === 10 || index === MAX_PARTICIPANTS - 1,
|
||||||
title: `Participant ${index + 1}`,
|
title: `Participant ${
|
||||||
|
(index - 2) % 4 === 0
|
||||||
|
? PARTICIPANT_EMOJIS[
|
||||||
|
Math.floor((index - 2) / 4) % PARTICIPANT_EMOJIS.length
|
||||||
|
]
|
||||||
|
: ''
|
||||||
|
} ${index + 1}`,
|
||||||
}),
|
}),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue