@@ -8,8 +8,7 @@ import { useOpenInEditor } from '../../utils/use-open-in-editor'
8
8
9
9
export const CallStackFrame : React . FC < {
10
10
frame : OriginalStackFrame
11
- index : number
12
- } > = function CallStackFrame ( { frame, index } ) {
11
+ } > = function CallStackFrame ( { frame } ) {
13
12
// TODO: ability to expand resolved frames
14
13
15
14
const f : StackFrame = frame . originalStackFrame ?? frame . sourceStackFrame
@@ -39,17 +38,10 @@ export const CallStackFrame: React.FC<{
39
38
return (
40
39
< div
41
40
data-nextjs-call-stack-frame
42
- data-nextjs-call-stack-frame-ignored = { ! hasSource }
43
- style = {
44
- {
45
- '--index' : index ,
46
- } as React . CSSProperties
47
- }
41
+ data-nextjs-call-stack-frame-no-source = { ! hasSource }
42
+ data-nextjs-call-stack-frame-ignored = { frame . ignored }
48
43
>
49
- < div
50
- data-nextjs-frame-expanded = { ! frame . ignored }
51
- className = "call-stack-frame-method-name"
52
- >
44
+ < div className = "call-stack-frame-method-name" >
53
45
< HotlinkedText text = { formattedMethod } />
54
46
{ hasSource && (
55
47
< button onClick = { open } className = "open-in-editor-button" >
@@ -77,17 +69,21 @@ export const CallStackFrame: React.FC<{
77
69
}
78
70
79
71
export const CALL_STACK_FRAME_STYLES = `
80
- [data-nextjs-call-stack-frame-ignored ] {
72
+ [data-nextjs-call-stack-frame-no-source ] {
81
73
padding: 6px 8px;
82
74
margin-bottom: 4px;
83
75
84
76
border-radius: var(--rounded-lg);
85
77
}
86
78
87
- [data-nextjs-call-stack-frame-ignored ]:last-child {
79
+ [data-nextjs-call-stack-frame-no-source ]:last-child {
88
80
margin-bottom: 0;
89
81
}
90
82
83
+ [data-nextjs-call-stack-frame-ignored="true"] {
84
+ opacity: 0.6;
85
+ }
86
+
91
87
[data-nextjs-call-stack-frame] {
92
88
user-select: text;
93
89
display: block;
0 commit comments