Skip to content

Commit

Permalink
fix(breadcrumbs): Use subgrid to align log levels
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed Aug 14, 2024
1 parent 26cc15f commit 2727b01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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
8 changes: 6 additions & 2 deletions static/app/components/timeline/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ 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;
display: grid;
grid-template-columns: subgrid;
grid-column: 1/-1;
grid-column-gap: ${space(1)};
margin: ${space(1)} 0;
&:first-child {
margin-top: 0;
Expand Down Expand Up @@ -136,6 +138,8 @@ export const Data = styled('div')`

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

0 comments on commit 2727b01

Please sign in to comment.