@@ -17,6 +17,9 @@ limitations under the License.
17
17
.mx_InviteDialog_addressBar {
18
18
display : flex ;
19
19
flex-direction : row ;
20
+ // Right margin for the design. We could apply this to the whole dialog, but then the scrollbar
21
+ // for the user section gets weird.
22
+ margin : 8px 45px 0 0 ;
20
23
21
24
.mx_InviteDialog_editor {
22
25
flex : 1 ;
@@ -73,7 +76,7 @@ limitations under the License.
73
76
}
74
77
75
78
.mx_InviteDialog_section {
76
- padding-bottom : 10 px ;
79
+ padding-bottom : 4 px ;
77
80
78
81
h3 {
79
82
font-size : $font-12px ;
@@ -82,6 +85,14 @@ limitations under the License.
82
85
text-transform : uppercase ;
83
86
}
84
87
88
+ > p {
89
+ margin : 0 ;
90
+ }
91
+
92
+ > span {
93
+ color : $primary-fg-color ;
94
+ }
95
+
85
96
.mx_InviteDialog_subname {
86
97
margin-bottom : 10px ;
87
98
margin-top : -10px ; // HACK: Positioning with margins is bad
@@ -90,6 +101,63 @@ limitations under the License.
90
101
}
91
102
}
92
103
104
+ .mx_InviteDialog_section_hidden_suggestions_disclaimer {
105
+ padding : 8px 0 16px 0 ;
106
+ font-size : $font-14px ;
107
+
108
+ > span {
109
+ color : $primary-fg-color ;
110
+ font-weight : 600 ;
111
+ }
112
+
113
+ > p {
114
+ margin : 0 ;
115
+ }
116
+ }
117
+
118
+ .mx_InviteDialog_footer {
119
+ border-top : 1px solid $input-border-color ;
120
+
121
+ > h3 {
122
+ margin : 12px 0 ;
123
+ font-size : $font-12px ;
124
+ color : $muted-fg-color ;
125
+ font-weight : bold ;
126
+ text-transform : uppercase ;
127
+ }
128
+
129
+ .mx_InviteDialog_footer_link {
130
+ display : flex ;
131
+ justify-content : space-between ;
132
+ border-radius : 4px ;
133
+ border : solid 1px $light-fg-color ;
134
+ padding : 8px ;
135
+
136
+ > a {
137
+ text-decoration : none ;
138
+ flex-shrink : 1 ;
139
+ overflow : hidden ;
140
+ text-overflow : ellipsis ;
141
+ }
142
+ }
143
+
144
+ .mx_InviteDialog_footer_link_copy {
145
+ flex-shrink : 0 ;
146
+ cursor : pointer ;
147
+ margin-left : 20px ;
148
+ display : inherit ;
149
+
150
+ > div {
151
+ mask-image : url ($copy-button-url );
152
+ background-color : $message-action-bar-fg-color ;
153
+ margin-left : 5px ;
154
+ width : 20px ;
155
+ height : 20px ;
156
+ background-repeat : no-repeat ;
157
+ }
158
+ }
159
+ }
160
+
93
161
.mx_InviteDialog_roomTile {
94
162
cursor : pointer ;
95
163
padding : 5px 10px ;
@@ -142,6 +210,7 @@ limitations under the License.
142
210
143
211
.mx_InviteDialog_roomTile_nameStack {
144
212
display : inline-block ;
213
+ overflow : hidden ;
145
214
}
146
215
147
216
.mx_InviteDialog_roomTile_name {
@@ -157,6 +226,13 @@ limitations under the License.
157
226
margin-left : 7px ;
158
227
}
159
228
229
+ .mx_InviteDialog_roomTile_name ,
230
+ .mx_InviteDialog_roomTile_userId {
231
+ overflow : hidden ;
232
+ text-overflow : ellipsis ;
233
+ white-space : nowrap ;
234
+ }
235
+
160
236
.mx_InviteDialog_roomTile_time {
161
237
text-align : right ;
162
238
font-size : $font-12px ;
@@ -212,22 +288,29 @@ limitations under the License.
212
288
213
289
.mx_InviteDialog {
214
290
// Prevent the dialog from jumping around randomly when elements change.
215
- height : 590 px ;
291
+ height : 600 px ;
216
292
padding-left : 20px ; // the design wants some padding on the left
293
+ display : flex ;
294
+ flex-direction : column ;
295
+
296
+ .mx_InviteDialog_content {
297
+ overflow : hidden ;
298
+ }
217
299
}
218
300
219
301
.mx_InviteDialog_userSections {
220
- margin-top : 10 px ;
302
+ margin-top : 4 px ;
221
303
overflow-y : auto ;
222
- padding-right : 45px ;
223
- height : 455 px ; // mx_InviteDialog's height minus some for the upper elements
304
+ padding : 0 45px 4 px 0 ;
305
+ height : calc ( 100 % - 115 px ) ; // mx_InviteDialog's height minus some for the upper and lower elements
224
306
}
225
307
226
- // Right margin for the design. We could apply this to the whole dialog, but then the scrollbar
227
- // for the user section gets weird.
228
- .mx_InviteDialog_helpText ,
229
- .mx_InviteDialog_addressBar {
230
- margin-right : 45px ;
308
+ .mx_InviteDialog_hasFooter .mx_InviteDialog_userSections {
309
+ height : calc (100% - 175px );
310
+ }
311
+
312
+ .mx_InviteDialog_helpText {
313
+ margin : 0 ;
231
314
}
232
315
233
316
.mx_InviteDialog_helpText .mx_AccessibleButton_kind_link {
0 commit comments