Unverified Commit 1a8ad5a7 authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

[Fast Refresh] Do not draw eye to collapsed frames (#12673)

parent 1c555f67
...@@ -34,23 +34,7 @@ const CallStackFrame: React.FC<{ ...@@ -34,23 +34,7 @@ const CallStackFrame: React.FC<{
return ( return (
<div data-nextjs-call-stack-frame> <div data-nextjs-call-stack-frame>
<h6> <h6 data-nextjs-frame-expanded={Boolean(frame.expanded)}>
{frame.expanded ? (
undefined
) : (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"></path>
<line x1="1" y1="1" x2="23" y2="23"></line>
</svg>
)}
{f.methodName} {f.methodName}
</h6> </h6>
<div <div
...@@ -197,19 +181,17 @@ export const styles = css` ...@@ -197,19 +181,17 @@ export const styles = css`
margin-top: 0; margin-top: 0;
margin-bottom: var(--size-gap); margin-bottom: var(--size-gap);
font-family: var(--font-stack-monospace); font-family: var(--font-stack-monospace);
color: rgba(25, 25, 25, 1); color: #222;
} }
[data-nextjs-call-stack-frame] > h6 > svg { [data-nextjs-call-stack-frame] > h6[data-nextjs-frame-expanded='false'] {
width: auto; color: #666;
height: var(--size-font-small);
margin-right: var(--size-gap);
} }
[data-nextjs-call-stack-frame] > div { [data-nextjs-call-stack-frame] > div {
display: flex; display: flex;
align-items: center; align-items: center;
padding-left: calc(var(--size-gap) + var(--size-gap-half)); padding-left: calc(var(--size-gap) + var(--size-gap-half));
font-size: var(--size-font-small); font-size: var(--size-font-small);
color: rgba(25, 25, 25, 0.5); color: #999;
} }
[data-nextjs-call-stack-frame] > div > svg { [data-nextjs-call-stack-frame] > div > svg {
width: auto; width: auto;
......
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