浏览代码

fix(filmstrip-only): set width for toolbar popovers

The popovers in filmstrip only are displaying thinly.
As a quick workaround, set a width on them. There
should only be one anyway, which shows up when
talking while muted.
j8
Leonard Kim 8 年前
父节点
当前提交
92dbdade39
共有 2 个文件被更改,包括 9 次插入1 次删除
  1. 4
    0
      css/_toolbars.scss
  2. 5
    1
      react/features/toolbox/components/ToolbarButton.web.js

+ 4
- 0
css/_toolbars.scss 查看文件

@@ -226,6 +226,10 @@
226 226
             width: 37px;
227 227
         }
228 228
 
229
+        .button-popover-message {
230
+            width: 100px;
231
+        }
232
+
229 233
         .toolbar-button-wrapper:first-child .button {
230 234
             border-top-left-radius: 3px;
231 235
             border-top-right-radius: 3px;

+ 5
- 1
react/features/toolbox/components/ToolbarButton.web.js 查看文件

@@ -128,7 +128,11 @@ class ToolbarButton extends Component {
128 128
 
129 129
             children = ( // eslint-disable-line no-extra-parens
130 130
                 <InlineDialog
131
-                    content = { t(dataAttr, dataInterpolate) }
131
+                    content = {
132
+                        <div className = 'button-popover-message'>
133
+                            { t(dataAttr, dataInterpolate) }
134
+                        </div>
135
+                    }
132 136
                     isOpen = { Boolean(popupConfig) }
133 137
                     position = { position }>
134 138
                     { buttonComponent }

正在加载...
取消
保存