浏览代码

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

master
Avram Tudor 4 年前
父节点
当前提交
8e4a22bdbf
没有帐户链接到提交者的电子邮件

+ 17
- 15
react/features/participants-pane/components/FooterContextMenu.js 查看文件

21
 
21
 
22
 import {
22
 import {
23
     ContextMenu,
23
     ContextMenu,
24
-    ContextMenuItem
24
+    ContextMenuItem,
25
+    ContextMenuItemGroup
25
 } from './web/styled';
26
 } from './web/styled';
26
 
27
 
27
 const useStyles = makeStyles(() => {
28
 const useStyles = makeStyles(() => {
33
             right: 0,
34
             right: 0,
34
             top: '-8px',
35
             top: '-8px',
35
             transform: 'translateY(-100%)',
36
             transform: 'translateY(-100%)',
36
-            width: '238px'
37
+            width: '283px'
37
         },
38
         },
38
         text: {
39
         text: {
39
-            marginLeft: '52px',
40
-            lineHeight: '40px'
40
+            color: '#C2C2C2',
41
+            padding: '10px 16px 10px 52px'
41
         },
42
         },
42
         paddedAction: {
43
         paddedAction: {
43
             marginLeft: '36px;'
44
             marginLeft: '36px;'
74
         <ContextMenu
75
         <ContextMenu
75
             className = { classes.contextMenu }
76
             className = { classes.contextMenu }
76
             onMouseLeave = { onMouseLeave }>
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
             { isModerationSupported && !allModerators ? (
88
             { isModerationSupported && !allModerators ? (
87
-                <>
89
+                <ContextMenuItemGroup>
88
                     <div className = { classes.text }>
90
                     <div className = { classes.text }>
89
                         {t('participantsPane.actions.allow')}
91
                         {t('participantsPane.actions.allow')}
90
                     </div>
92
                     </div>
106
                             <span>{ t('participantsPane.actions.startModeration') }</span>
108
                             <span>{ t('participantsPane.actions.startModeration') }</span>
107
                         </ContextMenuItem>
109
                         </ContextMenuItem>
108
                     )}
110
                     )}
109
-                </>
111
+                </ContextMenuItemGroup>
110
             ) : undefined
112
             ) : undefined
111
             }
113
             }
112
         </ContextMenu>
114
         </ContextMenu>

+ 1
- 1
react/features/participants-pane/components/web/styled.js 查看文件

99
   cursor: pointer;
99
   cursor: pointer;
100
   display: flex;
100
   display: flex;
101
   min-height: 40px;
101
   min-height: 40px;
102
-  padding: 8px 16px;
102
+  padding: 10px 16px;
103
 
103
 
104
   & > *:not(:last-child) {
104
   & > *:not(:last-child) {
105
     margin-right: 16px;
105
     margin-right: 16px;

正在加载...
取消
保存