Unverified Commit f20f3894 authored by Jiwon Choi's avatar Jiwon Choi Committed by GitHub

[dev-overlay] sync style diffs with new design (#75949)

This PR synced style with the re-redesign.

| Before | After |
|--------|--------|
| ![CleanShot 2025-02-14 at 01 43 59](https://github.com/user-attachments/assets/d10e9c02-d26f-4a31-8707-707b000a687f) | ![CleanShot 2025-02-14 at 01 44 27](https://github.com/user-attachments/assets/0d0e4571-c90b-4431-a6aa-69c21a1135c7) |
| ![CleanShot 2025-02-14 at 01 46 09](https://github.com/user-attachments/assets/6b2073bc-d7b4-43ee-8c12-e6e4505fc1b9) | ![CleanShot 2025-02-14 at 01 46 05](https://github.com/user-attachments/assets/7dc0a360-8382-43f4-a64b-c212a56b326b) | 

Closes NDX-811
parent 4af10ddb
......@@ -84,6 +84,10 @@ export const CALL_STACK_FRAME_STYLES = css`
border-radius: var(--rounded-lg);
}
[data-nextjs-call-stack-frame-ignored]:last-child {
margin-bottom: 0;
}
[data-nextjs-call-stack-frame] {
user-select: text;
display: block;
......
......@@ -109,11 +109,7 @@ export const CODE_FRAME_STYLES = css`
font-family: var(--font-stack-monospace);
font-size: 12px;
line-height: 16px;
margin: var(--next-dialog-row-padding);
&:has(~ [data-nextjs-call-stack]) {
margin-bottom: 0;
}
margin: var(--size-2) 0;
}
.code-frame-link,
......@@ -121,6 +117,10 @@ export const CODE_FRAME_STYLES = css`
padding: 12px;
}
.code-frame-pre {
white-space: pre-wrap;
}
.code-frame-header {
width: 100%;
cursor: pointer;
......
......@@ -237,12 +237,10 @@ function CopySuccessIcon() {
)
}
// TODO(jiwon): Is not used anymore, should we decouple the styles?
export const COPY_BUTTON_STYLES = css`
[data-nextjs-data-runtime-error-copy-button],
[data-nextjs-data-runtime-error-copy-button]:focus:not(:focus-visible) {
position: relative;
margin-left: var(--size-gap);
padding: 0;
border: none;
background: none;
......
......@@ -55,6 +55,7 @@ const styles = css`
display: flex;
flex-direction: column;
position: relative;
padding: var(--size-4) var(--size-3);
}
/* Account for the footer height, when present */
......@@ -64,8 +65,7 @@ const styles = css`
[data-nextjs-dialog-content] > [data-nextjs-dialog-header] {
flex-shrink: 0;
padding: var(--next-dialog-row-padding);
padding-bottom: 0;
margin-bottom: var(--size-2);
}
[data-nextjs-dialog-content] > [data-nextjs-dialog-body] {
......
......@@ -122,10 +122,7 @@ function ChevronUpDown() {
export const CALL_STACK_STYLES = css`
.error-overlay-call-stack-container {
position: relative;
padding: var(--size-4) var(--size-3);
/* To optically align last item */
padding-bottom: 8px;
position: relative;
margin-top: var(--size-2);
}
.error-overlay-call-stack-header {
......@@ -133,8 +130,7 @@ export const CALL_STACK_STYLES = css`
justify-content: space-between;
align-items: center;
min-height: 28px;
margin-bottom: var(--size-3);
padding: 0 var(--size-2);
padding: var(--size-2) var(--size-2) var(--size-3) var(--size-1);
width: 100%;
}
......
......@@ -20,6 +20,7 @@ export function ErrorMessage({ errorMessage }: ErrorMessageProps) {
export const styles = css`
.nextjs__container_errors_desc {
margin: 0;
margin-left: var(--size-1);
color: var(--color-red-900);
font-weight: 500;
font-size: var(--size-font);
......
......@@ -264,7 +264,7 @@ export const styles = css`
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: var(--size-3);
margin-bottom: var(--size-3_5);
}
.error-overlay-notes-container {
padding: 0 var(--size-4);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment