Skip to content

Commit

Permalink
fix(trace-view): Styling adjustments to match new design (#83459)
Browse files Browse the repository at this point in the history
  • Loading branch information
0Calories authored Jan 15, 2025
1 parent 844df2b commit 7e3d477
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
25 changes: 18 additions & 7 deletions static/app/views/performance/newTraceDetails/trace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ export function Trace({
className="TraceIndicatorsContainer"
ref={manager.registerIndicatorContainerRef}
>
<div className="TraceIndicatorContainerMiddleLine" />
{trace.indicators.length > 0
? trace.indicators.map((indicator, i) => {
const status =
Expand Down Expand Up @@ -776,7 +777,7 @@ const TraceStylingWrapper = styled('div')`
&:before {
background-color: ${p => p.theme.background};
height: 44px;
height: 38px;
.TraceScrollbarContainer {
height: 44px;
Expand All @@ -785,7 +786,7 @@ const TraceStylingWrapper = styled('div')`
.TraceIndicator.Timeline {
.TraceIndicatorLabelContainer {
top: 26px;
top: 22px;
}
.TraceIndicatorLine {
top: 30px;
Expand All @@ -803,9 +804,10 @@ const TraceStylingWrapper = styled('div')`
left: 0;
top: 0;
width: 100%;
height: 26px;
background-color: ${p => p.theme.backgroundSecondary};
height: 38px;
background-color: ${p => p.theme.background};
border-bottom: 1px solid ${p => p.theme.border};
z-index: 10;
}
&.Loading {
Expand Down Expand Up @@ -833,7 +835,7 @@ const TraceStylingWrapper = styled('div')`
.TraceScrollbarContainer {
left: 0;
top: 0;
height: 26px;
height: 38px;
position: absolute;
overflow-x: auto;
overscroll-behavior: none;
Expand Down Expand Up @@ -887,6 +889,14 @@ const TraceStylingWrapper = styled('div')`
pointer-events: none;
}
.TraceIndicatorContainerMiddleLine {
position: absolute;
top: 18px;
background-color: ${p => p.theme.border};
width: 100%;
height: 1px;
}
.TraceIndicatorLabelContainer {
min-width: 34px;
text-align: center;
Expand All @@ -895,7 +905,7 @@ const TraceStylingWrapper = styled('div')`
font-weight: ${p => p.theme.fontWeightBold};
color: ${p => p.theme.textColor};
background-color: ${p => p.theme.background};
border-radius: ${p => p.theme.borderRadius};
border-radius: 100px;
border: 1px solid ${p => p.theme.border};
display: inline-block;
line-height: 1;
Expand Down Expand Up @@ -929,6 +939,7 @@ const TraceStylingWrapper = styled('div')`
.TraceIndicatorLabel {
padding: 2px;
border-radius: 100px;
}
.TraceIndicator {
Expand Down Expand Up @@ -1020,7 +1031,7 @@ const TraceStylingWrapper = styled('div')`
.TraceIndicatorLabelContainer {
font-weight: ${p => p.theme.fontWeightNormal};
min-width: 0;
top: 8px;
top: 22px;
width: auto;
border: none;
background-color: transparent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ const TabsHeightContainer = styled('div')<{
left: ${p => (p.layout === 'drawer left' ? '0' : 'initial')};
right: ${p => (p.layout === 'drawer right' ? '0' : 'initial')};
position: ${p => (p.absolute ? 'absolute' : 'relative')};
height: ${p => (p.hasIndicators ? '38px' : '26px')};
height: 38px;
border-bottom: 1px solid ${p => p.theme.border};
display: flex;
`;
Expand Down

0 comments on commit 7e3d477

Please sign in to comment.