@@ -489,6 +489,12 @@ limitations under the License.
489
489
}
490
490
491
491
& .mx_EventTile_bad {
492
+ & :hover {
493
+ & ::before {
494
+ background : transparent ;
495
+ }
496
+ }
497
+
492
498
/* Special layout scenario for "Unable To Decrypt (UTD)" events */
493
499
.mx_EventTile_line {
494
500
display : grid ;
@@ -588,18 +594,22 @@ limitations under the License.
588
594
}
589
595
}
590
596
597
+ .mx_EventTile.mx_EventTile_bubbleContainer [data-layout = bubble ],
598
+ .mx_EventTile.mx_EventTile_leftAlignedBubble [data-layout = bubble ],
599
+ .mx_EventTile.mx_EventTile_info [data-layout = bubble ] {
600
+ padding : 5px 0 ;
601
+ display : flex ;
602
+ align-items : center ;
603
+ justify-content : flex-start ;
604
+ }
605
+
591
606
.mx_EventTile.mx_EventTile_bubbleContainer [data-layout = bubble ],
592
607
.mx_EventTile.mx_EventTile_leftAlignedBubble [data-layout = bubble ],
593
608
.mx_EventTile.mx_EventTile_info [data-layout = bubble ],
594
609
.mx_GenericEventListSummary [data-layout = bubble ][data-expanded = false ] {
595
610
--backgroundColor : transparent ;
596
611
--gutterSize : 0 ;
597
612
598
- display : flex ;
599
- align-items : center ;
600
- justify-content : flex-start ;
601
- padding : 5px 0 ;
602
-
603
613
.mx_EventTile_avatar {
604
614
position : static ;
605
615
order : -1 ;
@@ -634,90 +644,34 @@ limitations under the License.
634
644
}
635
645
636
646
.mx_GenericEventListSummary [data-layout = bubble ] {
637
- --maxWidth : 70% ;
638
- margin-left : calc (var (--avatarSize ) + var (--gutterSize ));
639
-
640
- .mx_GenericEventListSummary_toggle {
641
- margin : 0 55px 0 5px ;
642
- float : none ;
643
-
644
- & [aria-expanded = false ] {
645
- order : 9 ;
646
- }
647
- & [aria-expanded = true ] {
648
- text-align : right ;
649
- }
650
- }
651
-
652
- .mx_GenericEventListSummary_line {
653
- display : none ;
654
- }
655
-
656
- .mx_GenericEventListSummary_avatars {
657
- padding-top : 0 ;
647
+ .mx_EventTile.mx_EventTile_info .mx_EventTile_line {
648
+ // Avoid overflow of event info by cancelling width settings
649
+ width : 100% ;
650
+ min-width : 0 ;
651
+ max-width : 100% ;
658
652
}
659
653
660
- .mx_EventTile {
661
- & .mx_EventTile_info {
662
- .mx_EventTile_line {
663
- // Avoid overflow of event info by cancelling width settings
664
- width : 100% ;
665
- min-width : 0 ;
666
- max-width : 100% ;
667
- }
668
- }
654
+ // increase margin between ELS and the next Event to not have our user avatar overlap the expand/collapse button
655
+ & [data-expanded = false ] + .mx_EventTile [data-layout = bubble ][data-self = true ] {
656
+ margin-top : 20px ;
669
657
}
670
658
671
- /* events that do not require bubble layout */
672
- .mx_EventTile_line {
673
- background : transparent ;
674
- }
659
+ & [data-expanded = true ] .mx_EventTile_info {
660
+ padding : 2px 0 ;
661
+ margin-right : 0 ;
675
662
676
- & :hover {
677
- & ::before {
678
- background : transparent ;
663
+ .mx_MessageActionBar {
664
+ inset-inline-start : initial ; // Reset .mx_EventTile[data-layout="bubble"][data-self="false"] .mx_MessageActionBar
665
+ inset-inline-end : 48 px ; // align with that of right-column bubbles
679
666
}
680
- }
681
667
682
- & ::after {
683
- content : " " ;
684
- clear : both ;
685
- }
686
-
687
- & [data-expanded = false ] {
688
- // Align with left edge of bubble tiles
689
- padding : 0 49px ;
690
-
691
- // increase margin between ELS and the next Event to not have our user avatar overlap the expand/collapse button
692
- + .mx_EventTile [data-layout = bubble ][data-self = true ] {
693
- margin-top : 20px ;
668
+ .mx_ReadReceiptGroup {
669
+ // match alignment to RRs of chat bubbles
670
+ inset-inline-end : calc (-1 * var (--ReadReceiptGroup_EventBubbleTile-spacing-end ) + 60px );
694
671
}
695
- }
696
-
697
- // ideally we'd use display=contents here for the layout to all work regardless of the *ELS but
698
- // that breaks ScrollPanel's reliance upon offsetTop so we have to have a bit more finesse.
699
- & [data-expanded = true ] {
700
- display : flex ;
701
- flex-direction : column ;
702
- margin : 0 ;
703
-
704
- .mx_EventTile_info {
705
- padding : 2px 0 ;
706
- margin-right : 0 ;
707
672
708
- .mx_MessageActionBar {
709
- inset-inline-start : initial ; // Reset .mx_EventTile[data-layout="bubble"][data-self="false"] .mx_MessageActionBar
710
- inset-inline-end : 48px ; // align with that of right-column bubbles
711
- }
712
-
713
- .mx_ReadReceiptGroup {
714
- // match alignment to RRs of chat bubbles
715
- inset-inline-end : calc (-1 * var (--ReadReceiptGroup_EventBubbleTile-spacing-end ) + 60px );
716
- }
717
-
718
- & ::before {
719
- inset-inline-end : 0 ; // match alignment of the hover background to that of chat bubbles
720
- }
673
+ & ::before {
674
+ inset-inline-end : 0 ; // match alignment of the hover background to that of chat bubbles
721
675
}
722
676
}
723
677
}
0 commit comments