File tree 1 file changed +12
-1
lines changed
packages/next/src/client/components/react-dev-overlay/ui/components/overview
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,17 @@ function PageSegmentTreeLayerPresentation({
87
87
? staticPathsInfo . staticPaths
88
88
: [ ]
89
89
90
+ const resolvedStaticPaths =
91
+ staticPaths . length > 5
92
+ ? staticPaths
93
+ . slice ( 0 , 5 )
94
+ . concat ( [
95
+ `+${ staticPaths . length - 5 } more path${
96
+ staticPaths . length - 5 === 1 ? '' : 's'
97
+ } `,
98
+ ] )
99
+ : staticPaths
100
+
90
101
return (
91
102
< div className = "segment-explorer-item" >
92
103
{ ! fileName || level === 0 ? null : (
@@ -104,7 +115,7 @@ function PageSegmentTreeLayerPresentation({
104
115
{ pagePathPrefix === '' ? '' : `${ pagePathPrefix } /` }
105
116
< span className = "segment-explorer-filename-path" > { fileName } </ span >
106
117
< div >
107
- { staticPaths . map ( ( path ) => (
118
+ { resolvedStaticPaths . map ( ( path ) => (
108
119
< div key = { path } > { path } </ div >
109
120
) ) }
110
121
</ div >
You can’t perform that action at this time.
0 commit comments