Quellcode durchsuchen

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 vor 8 Jahren
Ursprung
Commit
1897c395ec

+ 3
- 8
react/features/dial-out/components/DialOutNumbersForm.web.js Datei anzeigen

23
     name: 'United States'
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
  * React {@code Component} responsible for fetching and displaying dial-out
27
  * React {@code Component} responsible for fetching and displaying dial-out
35
  * country codes, as well as dialing a phone number.
28
  * country codes, as well as dialing a phone number.
208
                     type = 'text'
201
                     type = 'text'
209
                     value = { dialCode || '' } />
202
                     value = { dialCode || '' } />
210
                 <span className = 'dropdown-trigger-icon'>
203
                 <span className = 'dropdown-trigger-icon'>
211
-                    { EXPAND_ICON }
204
+                    <ExpandIcon
205
+                        label = 'expand'
206
+                        size = 'medium' />
212
                 </span>
207
                 </span>
213
             </div>
208
             </div>
214
         );
209
         );

+ 3
- 1
react/features/invite/components/DialInNumbersForm.js Datei anzeigen

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

Laden…
Abbrechen
Speichern