fix(lobby): Knocking participants list for small widths

pull/8915/head jitsi-meet_5711
Vlad Piersec 4 years ago committed by Дамян Минков
parent 3426290bf2
commit eb41a306a6
  1. 72
      css/_lobby.scss
  2. 6
      react/features/lobby/components/web/KnockingParticipantList.js

@ -49,7 +49,7 @@
position: fixed; position: fixed;
top: 20; top: 20;
transition: top 1s ease; transition: top 1s ease;
z-index: 100; z-index: $toolbarZ + 1;
&.toolbox-visible { &.toolbox-visible {
// Same as toolbox subject position // Same as toolbox subject position
@ -62,11 +62,44 @@
padding: 15px padding: 15px
} }
ul { button {
align-self: stretch;
margin: 8px 0;
padding: 12px;
transition: .2s transform ease;
&:disabled {
opacity: .5;
}
&:hover {
transform: scale(1.05);
&:disabled {
transform: none;
}
}
&.borderLess {
background-color: transparent;
border-width: 0;
}
&.primary {
background-color: rgb(3, 118, 218);
border-width: 0;
}
}
}
.knocking-participants-container {
list-style-type: none; list-style-type: none;
max-height: 600px;
overflow-y: scroll;
padding: 0 15px 15px 15px; padding: 0 15px 15px 15px;
}
li { .knocking-participant {
align-items: center; align-items: center;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -85,34 +118,23 @@
margin: 0 5px; margin: 0 5px;
} }
} }
}
button {
align-self: stretch;
margin: 8px 0;
padding: 12px;
transition: .2s transform ease;
&:disabled {
opacity: .5;
}
&:hover { @media (max-width: 300px) {
transform: scale(1.05); #knocking-participant-list {
margin: 0;
text-align: center;
width: 100%;
&:disabled { .avatar {
transform: none; display: none;
} }
} }
&.borderLess { .knocking-participant {
background-color: transparent; flex-direction: column;
border-width: 0;
}
&.primary { .details {
background-color: rgb(3, 118, 218); margin: 0;
border-width: 0;
} }
} }
} }

@ -42,9 +42,11 @@ class KnockingParticipantList extends AbstractKnockingParticipantList<Props> {
<span className = 'title'> <span className = 'title'>
{ t('lobby.knockingParticipantList') } { t('lobby.knockingParticipantList') }
</span> </span>
<ul> <ul className = 'knocking-participants-container'>
{ _participants.map(p => ( { _participants.map(p => (
<li key = { p.id }> <li
className = 'knocking-participant'
key = { p.id }>
<Avatar <Avatar
displayName = { p.name } displayName = { p.name }
size = { 48 } size = { 48 }

Loading…
Cancel
Save