File tree 1 file changed +23
-12
lines changed
packages/next/src/client/components/react-dev-overlay/ui/components/overview
1 file changed +23
-12
lines changed Original file line number Diff line number Diff line change @@ -87,17 +87,6 @@ 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
-
101
90
return (
102
91
< div className = "segment-explorer-item" >
103
92
{ ! fileName || level === 0 ? null : (
@@ -115,7 +104,7 @@ function PageSegmentTreeLayerPresentation({
115
104
{ pagePathPrefix === '' ? '' : `${ pagePathPrefix } /` }
116
105
< span className = "segment-explorer-filename-path" > { fileName } </ span >
117
106
< div >
118
- { resolvedStaticPaths . map ( ( path ) => (
107
+ { staticPaths . map ( ( path ) => (
119
108
< div key = { path } > { path } </ div >
120
109
) ) }
121
110
</ div >
@@ -184,6 +173,28 @@ export const DEV_TOOLS_INFO_RENDER_FILES_STYLES = css`
184
173
overflow-y : auto;
185
174
padding : 0 12px ;
186
175
font-size : var (--size-14 );
176
+ max-height : 500px ;
177
+
178
+ & ::-webkit-scrollbar {
179
+ width : 6px ;
180
+ height : 6px ;
181
+ border-radius : 0 0 1rem 1rem ;
182
+ margin-bottom : 1rem ;
183
+ }
184
+
185
+ & ::-webkit-scrollbar-button {
186
+ display : none;
187
+ }
188
+
189
+ & ::-webkit-scrollbar-track {
190
+ border-radius : 0 0 1rem 1rem ;
191
+ background-color : var (--color-background-100 );
192
+ }
193
+
194
+ & ::-webkit-scrollbar-thumb {
195
+ border-radius : 1rem ;
196
+ background-color : var (--color-gray-500 );
197
+ }
187
198
}
188
199
189
200
.segment-explorer-item-row {
You can’t perform that action at this time.
0 commit comments