Skip to content

Commit

Permalink
fix(breadcrumbs): Use subgrid to align log levels (#76148)
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper authored Aug 14, 2024
1 parent fad1a67 commit 9a99b0f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ const Subtitle = styled('p')`

const Timestamp = styled('div')`
margin-right: ${space(1)};
text-align: right;
color: ${p => p.theme.subText};
font-size: ${p => p.theme.fontSizeSmall};
span {
Expand Down
17 changes: 9 additions & 8 deletions static/app/components/timeline/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,13 @@ export const Item = forwardRef(function _Item(
const Row = styled('div')<{showLastLine?: boolean}>`
position: relative;
color: ${p => p.theme.subText};
display: grid;
align-items: start;
grid-template: auto auto / 22px 1fr auto;
grid-column-gap: ${space(1)};
margin: ${space(1)} 0;
&:first-child {
margin-top: 0;
}
display: grid;
grid-template-columns: subgrid;
grid-column: 1/-1;
grid-row-gap: ${space(0.5)};
&:last-child {
margin-bottom: 0;
/* Show/hide connecting line from the last element of the timeline */
background: ${p => (p.showLastLine ? 'transparent' : p.theme.background)};
}
Expand Down Expand Up @@ -136,6 +133,10 @@ export const Data = styled('div')`

export const Container = styled('div')`
position: relative;
display: grid;
grid-template: auto auto / 22px 1fr auto;
grid-row-gap: ${space(1)};
grid-column-gap: ${space(1)};
/* vertical line connecting items */
&::before {
content: '';
Expand Down

0 comments on commit 9a99b0f

Please sign in to comment.