Skip to content

Commit 0359392

Browse files
authored
fix(span-view): The indentation in span view in not correct (#24430)
Span view is currently not showing the proper indentation for the parent/child relationships. Spans that have children are indented further due to the expand/collapse ui to left causing them to be rendered at the same indentation as their children. This change indents the children further to make the hierarchy clearer.
1 parent 8589ce6 commit 0359392

File tree

1 file changed

+4
-3
lines changed
  • src/sentry/static/sentry/app/components/events/interfaces/spans

1 file changed

+4
-3
lines changed

src/sentry/static/sentry/app/components/events/interfaces/spans/spanBar.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,9 +1034,9 @@ type TogglerTypes = OmitHtmlDivProps<{
10341034
export const SpanTreeTogglerContainer = styled('div')<TogglerTypes>`
10351035
position: relative;
10361036
height: ${SPAN_ROW_HEIGHT}px;
1037-
width: ${p => (p.hasToggler ? '40px' : '12px')};
1038-
min-width: ${p => (p.hasToggler ? '40px' : '12px')};
1039-
margin-right: ${p => (p.hasToggler ? space(0.5) : space(1))};
1037+
width: 40px;
1038+
min-width: 40px;
1039+
margin-right: ${space(1)};
10401040
z-index: ${zIndex.spanTreeToggler};
10411041
display: flex;
10421042
justify-content: flex-end;
@@ -1121,6 +1121,7 @@ export const SpanTreeToggler = styled('div')<SpanTreeTogglerAndDivProps>`
11211121
align-items: center;
11221122
justify-content: center;
11231123
border-radius: 99px;
1124+
padding: 0px ${space(0.5)};
11241125
transition: all 0.15s ease-in-out;
11251126
font-size: 10px;
11261127
line-height: 0;

0 commit comments

Comments
 (0)