瀏覽代碼

fix(icons): set a size prop for AtlasKit icons

With the upgarde of @atlaskit/icon to 7.0.0, the size prop
essentially became required to maintain its appearance in the
jitsi app, otherwise it'll unexpectedly try to take up the
available space and cause minor display issues.
j8
Leonard Kim 8 年之前
父節點
當前提交
1897c395ec

+ 3
- 8
react/features/dial-out/components/DialOutNumbersForm.web.js 查看文件

@@ -23,13 +23,6 @@ const DEFAULT_COUNTRY = {
23 23
     name: 'United States'
24 24
 };
25 25
 
26
-/**
27
- * The expand icon of the dropdown menu.
28
- *
29
- * @type {ReactElement}
30
- */
31
-const EXPAND_ICON = <ExpandIcon label = 'expand' />;
32
-
33 26
 /**
34 27
  * React {@code Component} responsible for fetching and displaying dial-out
35 28
  * country codes, as well as dialing a phone number.
@@ -208,7 +201,9 @@ class DialOutNumbersForm extends Component {
208 201
                     type = 'text'
209 202
                     value = { dialCode || '' } />
210 203
                 <span className = 'dropdown-trigger-icon'>
211
-                    { EXPAND_ICON }
204
+                    <ExpandIcon
205
+                        label = 'expand'
206
+                        size = 'medium' />
212 207
                 </span>
213 208
             </div>
214 209
         );

+ 3
- 1
react/features/invite/components/DialInNumbersForm.js 查看文件

@@ -210,7 +210,9 @@ class DialInNumbersForm extends Component {
210 210
                     type = 'text'
211 211
                     value = { triggerText || '' } />
212 212
                 <span className = 'dial-in-numbers-trigger-icon'>
213
-                    <ExpandIcon label = 'expand' />
213
+                    <ExpandIcon
214
+                        label = 'expand'
215
+                        size = 'medium' />
214 216
                 </span>
215 217
             </div>
216 218
         );

Loading…
取消
儲存