Browse Source

fix(moderation) fix ui styles for advanced moderation context menu (#9758)

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

+ 17
- 15
react/features/participants-pane/components/FooterContextMenu.js View File

@@ -21,7 +21,8 @@ import { MuteEveryonesVideoDialog } from '../../video-menu/components';
21 21
 
22 22
 import {
23 23
     ContextMenu,
24
-    ContextMenuItem
24
+    ContextMenuItem,
25
+    ContextMenuItemGroup
25 26
 } from './web/styled';
26 27
 
27 28
 const useStyles = makeStyles(() => {
@@ -33,11 +34,11 @@ const useStyles = makeStyles(() => {
33 34
             right: 0,
34 35
             top: '-8px',
35 36
             transform: 'translateY(-100%)',
36
-            width: '238px'
37
+            width: '283px'
37 38
         },
38 39
         text: {
39
-            marginLeft: '52px',
40
-            lineHeight: '40px'
40
+            color: '#C2C2C2',
41
+            padding: '10px 16px 10px 52px'
41 42
         },
42 43
         paddedAction: {
43 44
             marginLeft: '36px;'
@@ -74,17 +75,18 @@ export const FooterContextMenu = ({ onMouseLeave }: Props) => {
74 75
         <ContextMenu
75 76
             className = { classes.contextMenu }
76 77
             onMouseLeave = { onMouseLeave }>
77
-            <ContextMenuItem
78
-                id = 'participants-pane-context-menu-stop-video'
79
-                onClick = { muteAllVideo }>
80
-                <Icon
81
-                    size = { 20 }
82
-                    src = { IconVideoOff } />
83
-                <span>{ t('participantsPane.actions.stopEveryonesVideo') }</span>
84
-            </ContextMenuItem>
85
-
78
+            <ContextMenuItemGroup>
79
+                <ContextMenuItem
80
+                    id = 'participants-pane-context-menu-stop-video'
81
+                    onClick = { muteAllVideo }>
82
+                    <Icon
83
+                        size = { 20 }
84
+                        src = { IconVideoOff } />
85
+                    <span>{ t('participantsPane.actions.stopEveryonesVideo') }</span>
86
+                </ContextMenuItem>
87
+            </ContextMenuItemGroup>
86 88
             { isModerationSupported && !allModerators ? (
87
-                <>
89
+                <ContextMenuItemGroup>
88 90
                     <div className = { classes.text }>
89 91
                         {t('participantsPane.actions.allow')}
90 92
                     </div>
@@ -106,7 +108,7 @@ export const FooterContextMenu = ({ onMouseLeave }: Props) => {
106 108
                             <span>{ t('participantsPane.actions.startModeration') }</span>
107 109
                         </ContextMenuItem>
108 110
                     )}
109
-                </>
111
+                </ContextMenuItemGroup>
110 112
             ) : undefined
111 113
             }
112 114
         </ContextMenu>

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

@@ -99,7 +99,7 @@ export const ContextMenuItem = styled.div`
99 99
   cursor: pointer;
100 100
   display: flex;
101 101
   min-height: 40px;
102
-  padding: 8px 16px;
102
+  padding: 10px 16px;
103 103
 
104 104
   & > *:not(:last-child) {
105 105
     margin-right: 16px;

Loading…
Cancel
Save