@@ -302,7 +302,8 @@ function Overflow<ItemType = any>(
302
302
// ================================ Render ================================
303
303
const displayRest = restReady && ! ! omittedItems . length ;
304
304
305
- const isFullySSRAndFirstRender = fullySSR && containerWidth === null ;
305
+ const isFullySSRResponsiveFirstRender =
306
+ fullySSR && shouldResponsive && containerWidth === null ;
306
307
const fullySSRFirstRenderStyle : React . CSSProperties = {
307
308
maxWidth : 0 ,
308
309
padding : 0 ,
@@ -311,7 +312,7 @@ function Overflow<ItemType = any>(
311
312
overflowX : 'hidden' ,
312
313
} ;
313
314
314
- let suffixStyle : React . CSSProperties = isFullySSRAndFirstRender
315
+ let suffixStyle : React . CSSProperties = isFullySSRResponsiveFirstRender
315
316
? fullySSRFirstRenderStyle
316
317
: { } ;
317
318
if ( suffixFixedStart !== null && shouldResponsive ) {
@@ -327,7 +328,9 @@ function Overflow<ItemType = any>(
327
328
responsive : shouldResponsive ,
328
329
component : itemComponent ,
329
330
invalidate,
330
- style : isFullySSRAndFirstRender ? fullySSRFirstRenderStyle : undefined ,
331
+ style : isFullySSRResponsiveFirstRender
332
+ ? fullySSRFirstRenderStyle
333
+ : undefined ,
331
334
} ;
332
335
333
336
// >>>>> Choice render fun by `renderRawItem`
@@ -338,7 +341,7 @@ function Overflow<ItemType = any>(
338
341
// in `ssr="full"` case, item's `display` will be set to `true` when either condition is met:
339
342
// 1) at initial render; 2) its corresponding width is valid and pass the index check
340
343
const shouldDisplay = fullySSR
341
- ? isFullySSRAndFirstRender ||
344
+ ? isFullySSRResponsiveFirstRender ||
342
345
( isIdxCheckPass && getItemWidth ( index ) > 0 )
343
346
: isIdxCheckPass ;
344
347
return (
@@ -363,7 +366,7 @@ function Overflow<ItemType = any>(
363
366
// in `ssr="full"` case, item's `display` will be set to `true` when either condition is met:
364
367
// 1) at initial render; 2) its corresponding width is valid and pass the index check
365
368
const shouldDisplay = fullySSR
366
- ? isFullySSRAndFirstRender ||
369
+ ? isFullySSRResponsiveFirstRender ||
367
370
( isIdxCheckPass && getItemWidth ( index ) > 0 )
368
371
: isIdxCheckPass ;
369
372
return (
0 commit comments