Skip to content

feat(replays): Add UI to display network request details #46219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Mar 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
quick cleanup
  • Loading branch information
ryan953 committed Mar 23, 2023
commit 2f6a0cfb39f59d3b4c01b23d38a2148d20f2a95f
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {MouseEvent, useCallback, useMemo} from 'react';
import {Fragment, MouseEvent, useCallback, useMemo} from 'react';
import styled from '@emotion/styled';

import {Button} from 'sentry/components/button';
Expand Down Expand Up @@ -57,7 +57,7 @@ function NetworkRequestDetails({items}: Props) {
}

return (
<div data-test-id="network-request-details">
<Fragment>
<StyledStacked>
<StyledNetworkRequestTabs />
<CloseButtonWrapper>
Expand All @@ -79,7 +79,7 @@ function NetworkRequestDetails({items}: Props) {
<ResizeableContainer height={containerSize}>
<JSONBlock data={data} />
</ResizeableContainer>
</div>
</Fragment>
);
}

Expand Down Expand Up @@ -109,10 +109,14 @@ const StyledStacked = styled(Stacked)`
`;

const StyledNetworkRequestTabs = styled(NetworkRequestTabs)`
& > * {
& > li > a {
padding-top: ${space(1)};
padding-bottom: ${space(0.5)};
height: 100%;
border-bottom: ${space(0.5)} solid transparent;
}
& > :first-child {

& > li:first-child {
margin-left: ${space(1)};
}
`;
Expand Down