Skip to content

Commit 0bbe916

Browse files
committed
Fixes tracing scrolling. Closes #253
1 parent 5bffe0e commit 0bbe916

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

packages/graphql-playground/src/components/Playground/ResponseTracing.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const NotSupported = styled.div`
4242

4343
const TracingRows = styled.div`
4444
margin-left: 100px;
45+
padding-bottom: 100px;
4546
`
4647

4748
export default class ResponseTracing extends React.Component<Props, {}> {
@@ -52,13 +53,12 @@ export default class ResponseTracing extends React.Component<Props, {}> {
5253
{tracing ? (
5354
<TracingRows>
5455
{tracing.execution.resolvers.map(res => (
55-
<div key={res.path.join('.')}>
56-
<TracingRow
57-
path={res.path}
58-
startOffset={res.startOffset}
59-
duration={res.duration}
60-
/>
61-
</div>
56+
<TracingRow
57+
key={res.path.join('.')}
58+
path={res.path}
59+
startOffset={res.startOffset}
60+
duration={res.duration}
61+
/>
6262
))}
6363
</TracingRows>
6464
) : tracingSupported ? (

packages/graphql-playground/src/components/Playground/TracingRow.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import styled from 'styled-components'
44
const Row = styled.div`
55
position: relative;
66
font-size: 12px;
7+
display: table;
78
89
color: white;
910
`

0 commit comments

Comments
 (0)