Преглед изворни кода

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

master
Avram Tudor пре 3 година
родитељ
комит
d41c597446
No account linked to committer's email address

+ 1
- 0
react/features/participants-pane/components/web/ParticipantItem.js Прегледај датотеку

114
         <ParticipantContainer
114
         <ParticipantContainer
115
             id = { `participant-item-${participantID}` }
115
             id = { `participant-item-${participantID}` }
116
             isHighlighted = { isHighlighted }
116
             isHighlighted = { isHighlighted }
117
+            local = { local }
117
             onMouseLeave = { onLeave }
118
             onMouseLeave = { onLeave }
118
             trigger = { actionsTrigger }>
119
             trigger = { actionsTrigger }>
119
             <Avatar
120
             <Avatar

+ 21
- 15
react/features/participants-pane/components/web/styled.js Прегледај датотеку

246
   padding-right: ${props => props.theme.panePadding}px;
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
 export const ParticipantContainer = styled.div`
264
 export const ParticipantContainer = styled.div`
250
   align-items: center;
265
   align-items: center;
251
   color: white;
266
   color: white;
256
   padding-left: ${props => props.theme.panePadding}px;
271
   padding-left: ${props => props.theme.panePadding}px;
257
   position: relative;
272
   position: relative;
258
 
273
 
274
+  &:hover {
275
+    ${ParticipantStates} {
276
+      ${props => !props.local && 'display: none'};
277
+    }
278
+  }
279
+
259
   ${props => !props.isHighlighted && '&:hover {'}
280
   ${props => !props.isHighlighted && '&:hover {'}
260
     background-color: #292929;
281
     background-color: #292929;
261
 
282
 
296
   overflow: hidden;
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
 export const RaisedHandIndicatorBackground = styled.div`
320
 export const RaisedHandIndicatorBackground = styled.div`
315
   background-color: #ed9e1b;
321
   background-color: #ed9e1b;
316
   border-radius: 3px;
322
   border-radius: 3px;

Loading…
Откажи
Сачувај