@@ -16,70 +16,10 @@ body,
16
16
display : flex ;
17
17
height : 100% ;
18
18
19
- // .str-chat__thread-list {
20
- // width: 50%;
21
- // height: 100%;
22
- // }
23
-
24
- .str-chat__thread-list-item {
25
- all : unset ;
26
- box-sizing : border-box ;
27
- padding-block : 14px ;
28
- padding-inline : 8px ;
29
- gap : 6px ;
19
+ & > div .str-chat {
20
+ height : 100% ;
30
21
width : 100% ;
31
22
display : flex ;
32
- flex-direction : column ;
33
- cursor : pointer ;
34
- }
35
-
36
- .str-chat__thread-list-item__channel {
37
- font-size : 14px ;
38
- font-weight : 400 ;
39
- }
40
-
41
- .str-chat__thread-list-item__parent-message {
42
- font-size : 12px ;
43
- font-weight : 400 ;
44
- overflow : hidden ;
45
- white-space : nowrap ;
46
- text-overflow : ellipsis ;
47
- }
48
-
49
- .str-chat__thread-list-item__latest-reply-container {
50
- display : flex ;
51
- align-items : center ;
52
- gap : 5px ;
53
- }
54
-
55
- .str-chat__thread-list-item__latest-reply-details {
56
- display : flex ;
57
- flex-direction : column ;
58
- flex-grow : 1 ;
59
- gap : 4px ;
60
- width : 0 ;
61
- }
62
-
63
- .str-chat__thread-list-item__latest-reply-created-by {
64
- font-weight : 500 ;
65
- font-size : 16px ;
66
- }
67
-
68
- .str-chat__thread-list-item__latest-reply-text {
69
- display : flex ;
70
- font-size : 14px ;
71
- font-weight : 400 ;
72
- justify-content : space-between ;
73
-
74
- & > div :first-child {
75
- overflow : hidden ;
76
- white-space : nowrap ;
77
- text-overflow : ellipsis ;
78
- }
79
-
80
- & > div :last-child {
81
- white-space : nowrap ;
82
- }
83
23
}
84
24
85
25
.str-chat__channel-list {
@@ -122,18 +62,6 @@ body,
122
62
}
123
63
}
124
64
125
- .str-chat.threads {
126
- display : flex ;
127
- height : 100% ;
128
- width : 100% ;
129
-
130
- .vml {
131
- display : flex ;
132
- flex-direction : column ;
133
- width : 70% ;
134
- }
135
- }
136
-
137
65
@media screen and (min-width : 768px ) {
138
66
// .str-chat__channel-list.thread-open {
139
67
// &.menu-open {
@@ -177,4 +105,130 @@ body,
177
105
display : none ;
178
106
}
179
107
}
180
- }
108
+ }
109
+
110
+ .str-chat__threads {
111
+ display : flex ;
112
+ width : 100% ;
113
+
114
+ .str-chat__thread {
115
+ width : 100% ;
116
+ }
117
+
118
+ .str-chat__thread-list {
119
+ height : 100% ;
120
+ max-width : 420px ;
121
+ }
122
+ }
123
+
124
+ .str-chat__thread-list-container {
125
+ width : 40% ;
126
+ display : flex ;
127
+ flex-direction : column ;
128
+ flex-grow : 1 ;
129
+ font-size : 16px ;
130
+ font-weight : 400 ;
131
+ }
132
+
133
+ .str-chat__unread-threads-banner {
134
+ margin : 8px ;
135
+ border-radius : 16px ;
136
+ padding : 16px ;
137
+ background : #080707 ;
138
+ color : white ;
139
+ display : flex ;
140
+ align-items : center ;
141
+ justify-content : space-between ;
142
+ }
143
+ .str-chat__unread-threads-banner__button {
144
+ all : unset ;
145
+ cursor : pointer ;
146
+ display : flex ;
147
+ align-items : center ;
148
+ justify-content : center ;
149
+ width : 24px ;
150
+ height : 24px ;
151
+ }
152
+
153
+ .str-chat__thread-list-item {
154
+ all : unset ;
155
+ box-sizing : border-box ;
156
+ padding-block : 14px ;
157
+ padding-inline : 8px ;
158
+ gap : 6px ;
159
+ width : 100% ;
160
+ display : flex ;
161
+ flex-direction : column ;
162
+ cursor : pointer ;
163
+ }
164
+
165
+ .str-chat__thread-list-item__channel {
166
+ font-size : 14px ;
167
+ font-weight : 400 ;
168
+ }
169
+
170
+ .str-chat__thread-list-item__parent-message {
171
+ display : flex ;
172
+ gap : 3px ;
173
+ justify-content : space-between ;
174
+ align-items : center ;
175
+ }
176
+
177
+ .str-chat__thread-list-item__parent-message-text {
178
+ font-size : 12px ;
179
+ font-weight : 400 ;
180
+ overflow : hidden ;
181
+ white-space : nowrap ;
182
+ text-overflow : ellipsis ;
183
+ }
184
+
185
+ .str-chat__thread-list-item__parent-message-unread-count {
186
+ font-size : 12px ;
187
+ line-height : 1 ;
188
+ font-weight : 700 ;
189
+ width : 22px ;
190
+ height : 22px ;
191
+ background : #ff3842 ;
192
+ color : #fff ;
193
+ border-radius : 9999px ;
194
+ flex-shrink : 0 ;
195
+ display : flex ;
196
+ align-items : center ;
197
+ justify-content : center ;
198
+ }
199
+
200
+ .str-chat__thread-list-item__latest-reply-container {
201
+ display : flex ;
202
+ align-items : center ;
203
+ gap : 5px ;
204
+ }
205
+
206
+ .str-chat__thread-list-item__latest-reply-details {
207
+ display : flex ;
208
+ flex-direction : column ;
209
+ flex-grow : 1 ;
210
+ gap : 4px ;
211
+ width : 0 ;
212
+ }
213
+
214
+ .str-chat__thread-list-item__latest-reply-created-by {
215
+ font-weight : 500 ;
216
+ font-size : 16px ;
217
+ }
218
+
219
+ .str-chat__thread-list-item__latest-reply-text {
220
+ display : flex ;
221
+ font-size : 14px ;
222
+ font-weight : 400 ;
223
+ justify-content : space-between ;
224
+
225
+ & > div :first-child {
226
+ overflow : hidden ;
227
+ white-space : nowrap ;
228
+ text-overflow : ellipsis ;
229
+ }
230
+
231
+ & > div :last-child {
232
+ white-space : nowrap ;
233
+ }
234
+ }
0 commit comments