Skip to content

Commit 4a69de7

Browse files
committed
[dev-overlay] sync style diffs with new design
1 parent 3e9846c commit 4a69de7

File tree

5 files changed

+11
-14
lines changed

5 files changed

+11
-14
lines changed

packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/code-frame/code-frame.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,18 +109,18 @@ export const CODE_FRAME_STYLES = css`
109109
font-family: var(--font-stack-monospace);
110110
font-size: 12px;
111111
line-height: 16px;
112-
margin: var(--next-dialog-row-padding);
113-
114-
&:has(~ [data-nextjs-call-stack]) {
115-
margin-bottom: 0;
116-
}
112+
margin: 8px 0;
117113
}
118114
119115
.code-frame-link,
120116
.code-frame-pre {
121117
padding: 12px;
122118
}
123119
120+
.code-frame-pre {
121+
white-space: pre-wrap;
122+
}
123+
124124
.code-frame-header {
125125
width: 100%;
126126
cursor: pointer;

packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/dialog/styles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const styles = css`
5555
display: flex;
5656
flex-direction: column;
5757
position: relative;
58+
padding: 16px 12px;
5859
}
5960
6061
/* Account for the footer height, when present */
@@ -64,8 +65,7 @@ const styles = css`
6465
6566
[data-nextjs-dialog-content] > [data-nextjs-dialog-header] {
6667
flex-shrink: 0;
67-
padding: var(--next-dialog-row-padding);
68-
padding-bottom: 0;
68+
margin-bottom: 8px;
6969
}
7070
7171
[data-nextjs-dialog-content] > [data-nextjs-dialog-body] {

packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/errors/call-stack/call-stack.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,19 +122,15 @@ function ChevronUpDown() {
122122
export const CALL_STACK_STYLES = css`
123123
.error-overlay-call-stack-container {
124124
position: relative;
125-
padding: var(--size-4) var(--size-3);
126-
/* To optically align last item */
127-
padding-bottom: 8px;
128-
position: relative;
125+
margin-top: 8px;
129126
}
130127
131128
.error-overlay-call-stack-header {
132129
display: flex;
133130
justify-content: space-between;
134131
align-items: center;
135132
min-height: 28px;
136-
margin-bottom: var(--size-3);
137-
padding: 0 var(--size-2);
133+
padding: 8px 8px 12px 4px;
138134
width: 100%;
139135
}
140136

packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/errors/error-message/error-message.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export function ErrorMessage({ errorMessage }: ErrorMessageProps) {
2020
export const styles = css`
2121
.nextjs__container_errors_desc {
2222
margin: 0;
23+
margin-left: 4px;
2324
color: var(--color-red-900);
2425
font-weight: 500;
2526
font-size: var(--size-font);

packages/next/src/client/components/react-dev-overlay/_experimental/internal/container/errors.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ export const styles = css`
264264
display: flex;
265265
align-items: center;
266266
justify-content: space-between;
267-
margin-bottom: var(--size-3);
267+
margin-bottom: var(--size-3_5);
268268
}
269269
.error-overlay-notes-container {
270270
padding: 0 var(--size-4);

0 commit comments

Comments
 (0)