File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
static/app/components/onboarding Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -260,6 +260,17 @@ export function FrameworkSuggestionModal({
260
260
...listEntries ,
261
261
] ;
262
262
263
+ useEffect ( ( ) => {
264
+ const documentElement = document . querySelector ( '[role="dialog"] [role="document"]' ) ;
265
+ if (
266
+ ! ( documentElement instanceof HTMLElement ) ||
267
+ listEntriesWithVanilla . length <= COLLAPSE_COUNT
268
+ ) {
269
+ return ;
270
+ }
271
+ documentElement . style . minHeight = '631px' ;
272
+ } , [ listEntriesWithVanilla . length ] ) ;
273
+
263
274
return (
264
275
< Fragment >
265
276
< Header >
@@ -320,7 +331,7 @@ export function FrameworkSuggestionModal({
320
331
) ;
321
332
} ) }
322
333
</ PlatformList >
323
- { ! isExpanded && (
334
+ { showMoreButton && (
324
335
< ShowMoreButtonWrapper > { showMoreButton } </ ShowMoreButtonWrapper >
325
336
) }
326
337
</ Fragment >
@@ -483,7 +494,7 @@ export const modalCss = css`
483
494
display : flex;
484
495
flex-direction : column;
485
496
max-height : 80vh ;
486
- min-height : 631 px ;
497
+ min-height : 550 px ;
487
498
}
488
499
section {
489
500
display : flex;
You can’t perform that action at this time.
0 commit comments