Browse Source

fix(moderation) hide status icons on hover (#9747)

master
Avram Tudor 3 years ago
parent
commit
d41c597446
No account linked to committer's email address

+ 1
- 0
react/features/participants-pane/components/web/ParticipantItem.js View File

@@ -114,6 +114,7 @@ export default function ParticipantItem({
114 114
         <ParticipantContainer
115 115
             id = { `participant-item-${participantID}` }
116 116
             isHighlighted = { isHighlighted }
117
+            local = { local }
117 118
             onMouseLeave = { onLeave }
118 119
             trigger = { actionsTrigger }>
119 120
             <Avatar

+ 21
- 15
react/features/participants-pane/components/web/styled.js View File

@@ -246,6 +246,21 @@ export const ParticipantContent = styled.div`
246 246
   padding-right: ${props => props.theme.panePadding}px;
247 247
 `;
248 248
 
249
+export const ParticipantStates = styled.div`
250
+  display: flex;
251
+  justify-content: flex-end;
252
+
253
+  & > * {
254
+    align-items: center;
255
+    display: flex;
256
+    justify-content: center;
257
+  }
258
+
259
+  & > *:not(:last-child) {
260
+    margin-right: 8px;
261
+  }
262
+`;
263
+
249 264
 export const ParticipantContainer = styled.div`
250 265
   align-items: center;
251 266
   color: white;
@@ -256,6 +271,12 @@ export const ParticipantContainer = styled.div`
256 271
   padding-left: ${props => props.theme.panePadding}px;
257 272
   position: relative;
258 273
 
274
+  &:hover {
275
+    ${ParticipantStates} {
276
+      ${props => !props.local && 'display: none'};
277
+    }
278
+  }
279
+
259 280
   ${props => !props.isHighlighted && '&:hover {'}
260 281
     background-color: #292929;
261 282
 
@@ -296,21 +317,6 @@ export const ParticipantNameContainer = styled.div`
296 317
   overflow: hidden;
297 318
 `;
298 319
 
299
-export const ParticipantStates = styled.div`
300
-  display: flex;
301
-  justify-content: flex-end;
302
-
303
-  & > * {
304
-    align-items: center;
305
-    display: flex;
306
-    justify-content: center;
307
-  }
308
-
309
-  & > *:not(:last-child) {
310
-    margin-right: 8px;
311
-  }
312
-`;
313
-
314 320
 export const RaisedHandIndicatorBackground = styled.div`
315 321
   background-color: #ed9e1b;
316 322
   border-radius: 3px;

Loading…
Cancel
Save