Skip to content

Commit 9dd48e2

Browse files
committed
Place the Promise value after the stack trace
1 parent 48492f6 commit 9dd48e2

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

packages/react-devtools-shared/src/devtools/views/Components/InspectedElementSharedStyles.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@
9797
}
9898

9999
.CollapsableContent {
100-
padding: 0.25rem 0;
100+
margin-top: -0.25rem;
101101
}
102102

103103
.PreviewContainer {
104-
padding: 0 0.25rem 0.25rem 0.25rem;
104+
padding: 0.25rem;
105105
}
106106

107107
.TimeBarContainer {

packages/react-devtools-shared/src/devtools/views/Components/InspectedElementSuspendedBy.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,20 @@ function SuspendedByRow({
146146
</Button>
147147
{isOpen && (
148148
<div className={styles.CollapsableContent}>
149+
{stack !== null && stack.length > 0 && (
150+
<StackTraceView stack={stack} />
151+
)}
152+
{owner !== null && owner.id !== inspectedElement.id ? (
153+
<OwnerView
154+
key={owner.id}
155+
displayName={owner.displayName || 'Anonymous'}
156+
hocDisplayNames={owner.hocDisplayNames}
157+
compiledWithForget={owner.compiledWithForget}
158+
id={owner.id}
159+
isInStore={store.containsElement(owner.id)}
160+
type={owner.type}
161+
/>
162+
) : null}
149163
<div className={styles.PreviewContainer}>
150164
<KeyValue
151165
alphaSort={true}
@@ -174,20 +188,6 @@ function SuspendedByRow({
174188
}
175189
/>
176190
</div>
177-
{stack !== null && stack.length > 0 && (
178-
<StackTraceView stack={stack} />
179-
)}
180-
{owner !== null && owner.id !== inspectedElement.id ? (
181-
<OwnerView
182-
key={owner.id}
183-
displayName={owner.displayName || 'Anonymous'}
184-
hocDisplayNames={owner.hocDisplayNames}
185-
compiledWithForget={owner.compiledWithForget}
186-
id={owner.id}
187-
isInStore={store.containsElement(owner.id)}
188-
type={owner.type}
189-
/>
190-
) : null}
191191
</div>
192192
)}
193193
</div>

0 commit comments

Comments
 (0)