@@ -195,16 +195,18 @@ $left-gutter: 64px;
195195 }
196196 }
197197
198+ & [data-layout = irc ] {
199+ .mx_MessageTimestamp {
200+ text-align : right ;
201+ }
202+ }
203+
198204 & [data-layout = group ] {
199205 .mx_EventTile_avatar {
200206 top : 14px ;
201207 left : $spacing-8 ;
202208 }
203209
204- .mx_MessageTimestamp {
205- position : absolute ; // for modern layout
206- }
207-
208210 .mx_EventTile_line ,
209211 .mx_EventTile_reply {
210212 padding-top : var (--EventTile_group_line-spacing-block-start );
@@ -221,6 +223,12 @@ $left-gutter: 64px;
221223 margin-right : 10px ;
222224 }
223225
226+ .mx_MessageTimestamp {
227+ position : absolute ;
228+ left : 0 ;
229+ text-align : center ;
230+ }
231+
224232 .mx_ThreadSummary ,
225233 .mx_ThreadSummary_icon {
226234 margin-left : $left-gutter ;
@@ -261,6 +269,10 @@ $left-gutter: 64px;
261269 & .mx_EventTile_continuation {
262270 padding-top : 0px !important ;
263271 }
272+
273+ & .mx_EventTile_info .mx_EventTile_line {
274+ padding-left : calc ($left-gutter + 20px ); // override padding-left $left-gutter
275+ }
264276 }
265277
266278 & [data-layout = bubble ] {
@@ -304,11 +316,6 @@ $left-gutter: 64px;
304316 }
305317 }
306318
307- .mx_MessageTimestamp {
308- left : 0px ;
309- text-align : center ;
310- }
311-
312319 /* this is used for the tile for the event which is selected via the URL.
313320 * TODO: ultimately we probably want some transition on here.
314321 */
@@ -366,17 +373,42 @@ $left-gutter: 64px;
366373 }
367374}
368375
369- .mx_GenericEventListSummary :not ([data-layout = bubble ]) .mx_EventTile_line {
370- padding-left : $left-gutter ;
376+ .mx_GenericEventListSummary {
377+ & [data-layout = irc ],
378+ & [data-layout = group ] {
379+ .mx_EventTile_line .mx_RedactedBody {
380+ line-height : 1 ; // remove spacing between lines
381+ }
382+ }
383+
384+ & [data-layout = irc ] {
385+ .mx_EventTile_info .mx_EventTile_line {
386+ padding-left : 0 ; // Override .mx_EventTile:not([data-layout="bubble"]).mx_EventTile_info .mx_EventTile_line
387+ }
388+
389+ .mx_EventTile_line .mx_RedactedBody {
390+ padding-left : 24px ; // 25px - 1px
371391
372- .mx_RedactedBody {
373- line-height : 1 ; // remove spacing between lines
392+ & ::before {
393+ left : var (--right-padding );
394+ }
395+ }
396+
397+ // Apply only collapsed events block
398+ > .mx_EventTile_line {
399+ padding-left : calc (var (--name-width ) + var (--icon-width ) + $MessageTimestamp_width + 3 * var (--right-padding )); // 15 px of padding
400+ }
374401 }
375- }
376402
377- .mx_EventTile :not ([data-layout = bubble ]).mx_EventTile_info .mx_EventTile_line ,
378- .mx_GenericEventListSummary :not ([data-layout = bubble ]) > .mx_GenericEventListSummary_unstyledList > .mx_EventTile_info .mx_EventTile_avatar ~ .mx_EventTile_line {
379- padding-left : calc ($left-gutter + 20px ); // override padding-left $left-gutter
403+ & [data-layout = group ] {
404+ .mx_EventTile_line {
405+ padding-left : $left-gutter ;
406+ }
407+
408+ .mx_GenericEventListSummary_unstyledList > .mx_EventTile_info .mx_EventTile_avatar ~ .mx_EventTile_line {
409+ padding-left : calc ($left-gutter + 20px ); // override padding-left $left-gutter
410+ }
411+ }
380412}
381413
382414.mx_EventTile_content {
@@ -928,11 +960,14 @@ $left-gutter: 64px;
928960 }
929961 }
930962
931- & :not ([data-layout = bubble ]) {
963+ & [data-layout = irc ],
964+ & [data-layout = group ] {
932965 .mx_MessageTimestamp {
933966 top : 2px ; // Align with avatar
934967 }
968+ }
935969
970+ & :not ([data-layout = bubble ]) {
936971 .mx_EventTile_avatar {
937972 left : calc ($MessageTimestamp_width + 14px - 4px ); // 14px: avatar width, 4px: align with text
938973 z-index : 9 ; // position above the hover styling
@@ -1038,11 +1073,6 @@ $left-gutter: 64px;
10381073 }
10391074 }
10401075
1041- .mx_MessageTimestamp {
1042- top : 2px ; // Align with mx_EventTile_content
1043- position : absolute ; // for IRC layout
1044- }
1045-
10461076 .mx_EventTile_senderDetails {
10471077 display : flex ;
10481078 align-items : center ;
@@ -1062,6 +1092,11 @@ $left-gutter: 64px;
10621092 }
10631093 }
10641094 }
1095+
1096+ .mx_MessageTimestamp {
1097+ position : absolute ; // for IRC layout
1098+ top : 2px ; // Align with mx_EventTile_content
1099+ }
10651100 }
10661101 }
10671102
0 commit comments