Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
6e276347
Unverified
Commit
6e276347
authored
Feb 24, 2025
by
Jiachi Liu
Committed by
GitHub
Feb 24, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dev-overlay] polish component stack mask css (#76434)
parent
1d582056
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
component-stack-pseudo-html.tsx
...i/container/runtime-error/component-stack-pseudo-html.tsx
+4
-4
No files found.
packages/next/src/client/components/react-dev-overlay/ui/container/runtime-error/component-stack-pseudo-html.tsx
View file @
6e276347
...
@@ -68,8 +68,9 @@ export const PSEUDO_HTML_DIFF_STYLES = `
...
@@ -68,8 +68,9 @@ export const PSEUDO_HTML_DIFF_STYLES = `
[data-nextjs-container-errors-pseudo-html-collapse='true']
[data-nextjs-container-errors-pseudo-html-collapse='true']
.nextjs__container_errors__component-stack
.nextjs__container_errors__component-stack
code {
code {
max-height: 100px;
max-height: 120px;
mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, black 50%);
mask-image: linear-gradient(to bottom,rgba(0,0,0,0) 0%,black 10%);
padding-bottom: 40px;
}
}
.nextjs__container_errors__component-stack code {
.nextjs__container_errors__component-stack code {
display: block;
display: block;
...
@@ -78,8 +79,7 @@ export const PSEUDO_HTML_DIFF_STYLES = `
...
@@ -78,8 +79,7 @@ export const PSEUDO_HTML_DIFF_STYLES = `
scroll-snap-type: y mandatory;
scroll-snap-type: y mandatory;
overflow-y: hidden;
overflow-y: hidden;
}
}
[data-nextjs-container-errors-pseudo-html--diff],
[data-nextjs-container-errors-pseudo-html--diff] {
[data-nextjs-container-errors-pseudo-html--diff='error'] {
scroll-snap-align: center;
scroll-snap-align: center;
}
}
.error-overlay-hydration-error-diff-plus-icon {
.error-overlay-hydration-error-diff-plus-icon {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment