@@ -77,7 +77,7 @@ $left-gutter: 64px;
7777 background-color : $alert ;
7878 }
7979
80- .mx_ThreadInfo ,
80+ .mx_ThreadSummary ,
8181 .mx_ThreadSummaryIcon {
8282 margin-left : 64px ;
8383 }
@@ -304,15 +304,15 @@ $left-gutter: 64px;
304304.mx_RoomView_timeline_rr_enabled {
305305 .mx_EventTile [data-layout = group ] {
306306
307- .mx_ThreadInfo ,
307+ .mx_ThreadSummary ,
308308 .mx_ThreadSummaryIcon ,
309309 .mx_EventTile_line {
310310 /* ideally should be 100px, but 95px gives us a max thumbnail size of 800x600, which is nice */
311311 margin-right : 110px ;
312312 min-height : $font-14px ;
313313 }
314314
315- .mx_ThreadInfo {
315+ .mx_ThreadSummary {
316316 max-width : min (calc (100% - $left-gutter - 110px ), 600px ); // leave space on both left & right gutters
317317 }
318318 }
@@ -680,8 +680,9 @@ $left-gutter: 64px;
680680 }
681681}
682682
683+ .mx_ThreadPanel_replies ::before ,
683684.mx_ThreadSummaryIcon ::before ,
684- .mx_ThreadInfo ::before {
685+ .mx_ThreadSummary ::before {
685686 content : " " ;
686687 display : inline-block ;
687688 mask-image : url (' $(res)/img/element-icons/thread-summary.svg' );
@@ -707,113 +708,12 @@ $left-gutter: 64px;
707708 }
708709}
709710
710- .mx_ThreadInfo {
711- min-width : 267px ;
712- max-width : min (calc (100% - $left-gutter ), 600px ); // leave space on both left & right gutters
713- width : fit-content ;
714- height : 40px ;
715- position : relative ;
716- background-color : $system ;
717- padding-left : 12px ;
718- display : flex ;
719- align-items : center ;
720- border-radius : 8px ;
721- padding-right : 16px ;
722- margin-top : 8px ;
723- font-size : $font-12px ;
724- color : $secondary-content ;
725- box-sizing : border-box ;
726- justify-content : flex-start ;
727- clear : both ;
728- overflow : hidden ;
729- border : 1px solid $system ; // always render a border so the hover effect doesn't require a re-layout
730-
731- .mx_ThreadInfo_chevron {
732- position : absolute ;
733- top : 0 ;
734- right : 0 ;
735- bottom : 0 ;
736- width : 60px ;
737- box-sizing : border-box ;
738- // XXX: We use `$system-transparent` instead of `transparent` to work around a Safari <15.4 bug
739- background : linear-gradient (270deg , $system 50% , $system-transparent 100% );
740-
741- opacity : 0 ;
742- transform : translateX (60px );
743- transition : all .1s ease-in-out ;
744-
745- & ::before {
746- content : ' ' ;
747- position : absolute ;
748- top : 50% ;
749- right : 12px ;
750- transform : translateY (-50% );
751- width : 12px ;
752- height : 12px ;
753- mask-image : url (' $(res)/img/compound/chevron-right-12px.svg' );
754- mask-position : center ;
755- mask-size : contain ;
756- mask-repeat : no-repeat ;
757- background-color : $secondary-content ;
758- }
759- }
760-
761- & :hover ,
762- & :focus {
763- cursor : pointer ;
764- border-color : $quinary-content ;
765-
766- .mx_ThreadInfo_chevron {
767- opacity : 1 ;
768- transform : translateX (0 );
769- }
770- }
771-
772- & ::before {
773- align-self : center ; // v-align the threads icon
774- }
775- }
776-
777- .mx_MessagePanel_narrow .mx_ThreadInfo {
711+ .mx_MessagePanel_narrow .mx_ThreadSummary {
778712 min-width : initial ;
779713 max-width : initial ;
780714 width : initial ;
781715}
782716
783- $threadInfoLineHeight : calc (2 * $font-12px );
784-
785- .mx_ThreadInfo_sender {
786- font-weight : $font-semi-bold ;
787- line-height : $threadInfoLineHeight ;
788- text-overflow : ellipsis ;
789- overflow : hidden ;
790- white-space : nowrap ;
791- }
792-
793- .mx_ThreadInfo_content {
794- text-overflow : ellipsis ;
795- overflow : hidden ;
796- white-space : nowrap ;
797- margin-left : 4px ;
798- font-size : $font-12px ;
799- line-height : $threadInfoLineHeight ;
800- color : $secondary-content ;
801- flex : 1 ;
802- }
803-
804- .mx_ThreadInfo_avatar {
805- float : left ;
806- margin-right : 8px ;
807- }
808-
809- .mx_ThreadInfo_threads-amount {
810- font-weight : $font-semi-bold ;
811- position : relative ;
812- padding : 0 12px 0 8px ;
813- white-space : nowrap ;
814- line-height : $threadInfoLineHeight ;
815- }
816-
817717.mx_EventTile [data-shape = ThreadsList ] {
818718 --topOffset : 20px ;
819719 --leftOffset : 46px ;
0 commit comments