This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +28
-59
lines changed Expand file tree Collapse file tree 4 files changed +28
-59
lines changed Original file line number Diff line number Diff line change @@ -116,29 +116,11 @@ limitations under the License.
116
116
height : 100% ;
117
117
}
118
118
119
- // Override _GroupLayout.scss for the thread panel
120
- .mx_GroupLayout {
121
- .mx_EventTile {
122
- .mx_MessageActionBar {
123
- right : 0 ;
124
- top : -36px ; // 2px above EventTile
125
- z-index : 10 ; // See _EventTile.scss
126
- }
127
-
128
- & [data-shape = ThreadsList ] {
129
- > .mx_DisambiguatedProfile {
130
- margin-inline-start : 0 ;
131
- }
132
-
133
- .mx_MessageTimestamp {
134
- position : initial ;
135
- width : auto ;
136
- }
137
-
138
- .mx_EventTile_line {
139
- padding-bottom : 0 ; // Override mx_EventTile_line on _GroupLayout.scss
140
- }
141
- }
119
+ .mx_EventTile [data-layout = group ] {
120
+ .mx_MessageActionBar {
121
+ right : 0 ;
122
+ top : -36px ; // 2px above EventTile
123
+ z-index : 10 ; // See _EventTile.scss
142
124
}
143
125
}
144
126
Original file line number Diff line number Diff line change @@ -66,8 +66,25 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
66
66
}
67
67
68
68
& [data-layout = group ] {
69
- .mx_EventTile_line {
70
- line-height : var (--GroupLayout-EventTile-line-height );
69
+ > .mx_DisambiguatedProfile {
70
+ line-height : $font-20px ;
71
+ margin-left : $left-gutter ;
72
+ }
73
+
74
+ > .mx_EventTile_avatar {
75
+ position : absolute ;
76
+ z-index : 9 ;
77
+ }
78
+
79
+ .mx_MessageTimestamp {
80
+ position : absolute ; // for modern layout
81
+ }
82
+
83
+ .mx_EventTile_line ,
84
+ .mx_EventTile_reply {
85
+ padding-top : 1px ;
86
+ padding-bottom : 3px ;
87
+ line-height : $font-22px ;
71
88
}
72
89
}
73
90
}
@@ -128,7 +145,6 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
128
145
display : inline-block ;
129
146
padding-bottom : 0px ;
130
147
padding-top : 0px ;
131
- margin : 0px ;
132
148
max-width : calc (100% - $left-gutter );
133
149
}
134
150
@@ -789,7 +805,7 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
789
805
}
790
806
791
807
.mx_DisambiguatedProfile {
792
- margin-right : $spacing-12 ;
808
+ margin-inline : 0 $spacing-12 ;
793
809
display : inline-flex ;
794
810
flex : 1 ;
795
811
@@ -813,6 +829,7 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
813
829
.mx_EventTile_line {
814
830
width : 100% ;
815
831
box-sizing : border-box ;
832
+ padding-bottom : 0 ;
816
833
817
834
.mx_ThreadPanel_replies {
818
835
margin-top : $spacing-8 ;
@@ -835,6 +852,7 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
835
852
.mx_MessageTimestamp {
836
853
max-width : 80px ;
837
854
width : auto ;
855
+ position : initial ;
838
856
}
839
857
}
840
858
Original file line number Diff line number Diff line change @@ -15,38 +15,6 @@ See the License for the specific language governing permissions and
15
15
limitations under the License.
16
16
*/
17
17
18
- $left-gutter : 64px ;
19
-
20
- .mx_GroupLayout {
21
- --GroupLayout-EventTile-line-height : $font-22px ;
22
-
23
- .mx_EventTile {
24
- > .mx_DisambiguatedProfile {
25
- line-height : $font-20px ;
26
- margin-left : $left-gutter ;
27
- }
28
-
29
- > .mx_EventTile_avatar {
30
- position : absolute ;
31
- z-index : 9 ;
32
- }
33
-
34
- .mx_MessageTimestamp {
35
- position : absolute ; // for modern layout
36
- }
37
-
38
- .mx_EventTile_line ,
39
- .mx_EventTile_reply {
40
- padding-top : 1px ;
41
- padding-bottom : 3px ;
42
- }
43
-
44
- .mx_EventTile_reply {
45
- line-height : var (--GroupLayout-EventTile-line-height );
46
- }
47
- }
48
- }
49
-
50
18
/* Compact layout overrides */
51
19
52
20
.mx_MatrixChat_useCompactLayout {
Original file line number Diff line number Diff line change @@ -173,6 +173,7 @@ $irc-line-height: $font-18px;
173
173
174
174
.mx_DisambiguatedProfile {
175
175
width : var (--name-width );
176
+ margin-inline-end : 0 ; // override mx_EventTile > *
176
177
display : flex ;
177
178
order : 2 ;
178
179
flex-shrink : 0 ;
You can’t perform that action at this time.
0 commit comments