File tree 2 files changed +10
-8
lines changed
2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ const Subtitle = styled('p')`
144
144
145
145
const Timestamp = styled ( 'div' ) `
146
146
margin-right: ${ space ( 1 ) } ;
147
+ text-align: right;
147
148
color: ${ p => p . theme . subText } ;
148
149
font-size: ${ p => p . theme . fontSizeSmall } ;
149
150
span {
Original file line number Diff line number Diff line change @@ -62,16 +62,13 @@ export const Item = forwardRef(function _Item(
62
62
const Row = styled ( 'div' ) < { showLastLine ?: boolean } > `
63
63
position: relative;
64
64
color: ${ p => p . theme . subText } ;
65
- display: grid;
66
65
align-items: start;
67
- grid-template: auto auto / 22px 1fr auto;
68
- grid-column-gap: ${ space ( 1 ) } ;
69
- margin: ${ space ( 1 ) } 0;
70
- &:first-child {
71
- margin-top: 0;
72
- }
66
+ display: grid;
67
+ grid-template-columns: subgrid;
68
+ grid-column: 1/-1;
69
+ grid-row-gap: ${ space ( 0.5 ) } ;
70
+
73
71
&:last-child {
74
- margin-bottom: 0;
75
72
/* Show/hide connecting line from the last element of the timeline */
76
73
background: ${ p => ( p . showLastLine ? 'transparent' : p . theme . background ) } ;
77
74
}
@@ -136,6 +133,10 @@ export const Data = styled('div')`
136
133
137
134
export const Container = styled ( 'div' ) `
138
135
position: relative;
136
+ display: grid;
137
+ grid-template: auto auto / 22px 1fr auto;
138
+ grid-row-gap: ${ space ( 1 ) } ;
139
+ grid-column-gap: ${ space ( 1 ) } ;
139
140
/* vertical line connecting items */
140
141
&::before {
141
142
content: '';
You can’t perform that action at this time.
0 commit comments