File tree Expand file tree Collapse file tree 1 file changed +24
-3
lines changed
packages/next/src/next-devtools/dev-overlay/components/dev-tools-panel Expand file tree Collapse file tree 1 file changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,13 @@ export function DevToolsPanel({
35
35
dispatch ( { type : ACTION_DEV_TOOLS_PANEL_TOGGLE } )
36
36
}
37
37
38
- // TODO: Replace "error-overlay" styles to dev tools style.
39
38
return (
40
39
< Overlay >
41
- < div className = "error-overlay -dialog-container" ref = { dialogRef } >
40
+ < div className = "dev-tools-panel -dialog-container" ref = { dialogRef } >
42
41
< Dialog
43
42
aria-labelledby = "nextjs__container_dev_tools_panel_label"
44
43
aria-describedby = "nextjs__container_dev_tools_panel_desc"
45
- className = "error-overlay -dialog-scroll"
44
+ className = "dev-tools-panel -dialog-scroll"
46
45
onClose = { onClose }
47
46
>
48
47
< DialogContent >
@@ -58,6 +57,28 @@ export function DevToolsPanel({
58
57
}
59
58
60
59
export const DEV_TOOLS_PANEL_STYLES = `
60
+ .dev-tools-panel-dialog-container {
61
+ -webkit-font-smoothing: antialiased;
62
+ display: flex;
63
+ flex-direction: column;
64
+ background: var(--color-background-100);
65
+ background-clip: padding-box;
66
+ border: var(--next-dialog-border-width) solid var(--color-gray-400);
67
+ border-radius: 0 0 var(--next-dialog-radius) var(--next-dialog-radius);
68
+ box-shadow: var(--shadow-menu);
69
+ position: relative;
70
+ overflow: hidden;
71
+
72
+ /* TODO: Better styling. This is a prototype. */
73
+ min-width: 800px;
74
+ min-height: 500px;
75
+ }
76
+
77
+ .dev-tools-panel-dialog-scroll {
78
+ overflow-y: auto;
79
+ height: 100%;
80
+ }
81
+
61
82
[data-nextjs-dialog-overlay] {
62
83
padding: initial;
63
84
top: 10vh;
You can’t perform that action at this time.
0 commit comments