Explorar el Código

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 hace 8 años
padre
commit
92dbdade39
Se han modificado 2 ficheros con 9 adiciones y 1 borrados
  1. 4
    0
      css/_toolbars.scss
  2. 5
    1
      react/features/toolbox/components/ToolbarButton.web.js

+ 4
- 0
css/_toolbars.scss Ver fichero

@@ -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 Ver fichero

@@ -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 }

Loading…
Cancelar
Guardar