Merge pull request #18572 from ramonlsouza/add-username-grid
fix: display username in grid mode
This commit is contained in:
commit
7615fb1f85
@ -91,7 +91,6 @@ const WebcamConnecting = styled.div`
|
||||
min-width: 100%;
|
||||
border-radius: 10px;
|
||||
background-color: ${webcamBackgroundColor};
|
||||
scale: 1.5;
|
||||
z-index: 0;
|
||||
|
||||
&::after {
|
||||
|
@ -117,13 +117,15 @@ const UserActions = (props) => {
|
||||
});
|
||||
}
|
||||
|
||||
menuItems.push({
|
||||
key: `${cameraId}-mirror`,
|
||||
label: intl.formatMessage(intlMessages.mirrorLabel),
|
||||
description: intl.formatMessage(intlMessages.mirrorDesc),
|
||||
onClick: () => onHandleMirror(cameraId),
|
||||
dataTest: 'mirrorWebcamBtn',
|
||||
});
|
||||
if (isStream) {
|
||||
menuItems.push({
|
||||
key: `${cameraId}-mirror`,
|
||||
label: intl.formatMessage(intlMessages.mirrorLabel),
|
||||
description: intl.formatMessage(intlMessages.mirrorDesc),
|
||||
onClick: () => onHandleMirror(cameraId),
|
||||
dataTest: 'mirrorWebcamBtn',
|
||||
});
|
||||
}
|
||||
|
||||
if (numOfStreams > 2 && isStream) {
|
||||
menuItems.push({
|
||||
|
@ -32,10 +32,7 @@ const DropdownTrigger = styled(DivElipsis)`
|
||||
|
||||
const UserName = styled(TextElipsis)`
|
||||
position: relative;
|
||||
max-width: 75%;
|
||||
// Keep the background with 0.5 opacity, but leave the text with 1
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 1px;
|
||||
color: ${colorOffWhite};
|
||||
padding: 0 1rem 0 .5rem !important;
|
||||
font-size: 80%;
|
||||
@ -48,7 +45,9 @@ const UserName = styled(TextElipsis)`
|
||||
const Dropdown = styled.div`
|
||||
display: flex;
|
||||
outline: none !important;
|
||||
width: 70%;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 10px;
|
||||
display: inline-block;
|
||||
|
||||
@media ${mediumUp} {
|
||||
>[aria-expanded] {
|
||||
|
@ -13,6 +13,7 @@ const UserAvatarStyled = styled(UserAvatar)`
|
||||
width: 45%;
|
||||
max-width: 66px;
|
||||
max-height: 66px;
|
||||
scale: 1.5;
|
||||
|
||||
${({ unhealthyStream }) => unhealthyStream && `
|
||||
filter: grayscale(50%) opacity(50%);
|
||||
|
Loading…
Reference in New Issue
Block a user