@@ -143,7 +143,7 @@ export function DevToolsPanel({
143
143
</ div >
144
144
</ div >
145
145
</ DialogHeader >
146
- < DialogBody >
146
+ < DialogBody data-nextjs-devtools-panel-dialog-body >
147
147
< DevToolsPanelTab
148
148
activeTab = { activeTab }
149
149
devToolsPosition = { state . devToolsPosition }
@@ -167,11 +167,51 @@ export function DevToolsPanel({
167
167
}
168
168
169
169
export const DEVTOOLS_PANEL_STYLES = css `
170
+ [data-nextjs-devtools-panel-dialog-body ] {
171
+ overflow-y : auto;
172
+ }
173
+
174
+ [data-nextjs-devtools-panel-dialog-body ],
175
+ [data-nextjs-devtools-panel-dialog-body ] * {
176
+ & ::-webkit-scrollbar {
177
+ width : 6px ;
178
+ height : 6px ;
179
+ border-radius : 0 0 1rem 1rem ;
180
+ margin-bottom : 1rem ;
181
+ }
182
+
183
+ & ::-webkit-scrollbar-button {
184
+ display : none;
185
+ }
186
+
187
+ & ::-webkit-scrollbar-track {
188
+ border-radius : 0 0 1rem 1rem ;
189
+ background-color : var (--color-background-100 );
190
+ }
191
+
192
+ & ::-webkit-scrollbar-thumb {
193
+ border-radius : 1rem ;
194
+ background-color : var (--color-gray-500 );
195
+ }
196
+ }
197
+
170
198
/* TODO: Better override dialog header style. This conflicts with issues tab content. */
171
199
[data-nextjs-devtools-panel-dialog-header ] {
172
200
margin-bottom : 0 !important ;
173
201
}
174
202
203
+ /* Make DialogContent expand to push footer to bottom */
204
+ [data-nextjs-devtools-panel-dialog ] [data-nextjs-dialog-content ] {
205
+ flex : 1 ;
206
+ overflow : hidden;
207
+ }
208
+
209
+ /* Make DialogBody a flex container so its children can expand */
210
+ [data-nextjs-devtools-panel-dialog ] [data-nextjs-dialog-body ] {
211
+ display : flex;
212
+ flex-direction : column;
213
+ }
214
+
175
215
[data-nextjs-devtools-panel-overlay ] {
176
216
padding : initial;
177
217
margin : auto;
@@ -216,7 +256,6 @@ export const DEVTOOLS_PANEL_STYLES = css`
216
256
border-radius : var (--rounded-xl );
217
257
box-shadow : var (--shadow-lg );
218
258
position : relative;
219
- overflow-y : auto;
220
259
width : 100% ;
221
260
max-height : 50vh ;
222
261
min-height : 450px ;
0 commit comments