stream-chat-angular 3.0.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +198 -115
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/channel-header/channel-header.component.js +29 -9
- package/esm2015/lib/channel-preview/channel-preview.component.js +23 -11
- package/esm2015/lib/channel.service.js +3 -3
- package/esm2015/lib/get-channel-display-text.js +15 -0
- package/esm2015/lib/icon/icon.component.js +2 -2
- package/esm2015/lib/list-users.js +12 -0
- package/esm2015/lib/message/message.component.js +3 -3
- package/esm2015/lib/message-input/message-input.component.js +8 -3
- package/esm2015/lib/message-list/message-list.component.js +87 -43
- package/esm2015/public-api.js +2 -2
- package/fesm2015/stream-chat-angular.js +174 -101
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/channel-header/channel-header.component.d.ts +5 -1
- package/lib/channel-preview/channel-preview.component.d.ts +3 -1
- package/lib/channel.service.d.ts +4 -2
- package/lib/get-channel-display-text.d.ts +3 -0
- package/lib/icon/icon.component.d.ts +1 -1
- package/lib/list-users.d.ts +2 -0
- package/lib/message/message.component.d.ts +3 -0
- package/lib/message-list/message-list.component.d.ts +9 -2
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/src/assets/styles/css/index.css +1 -1
- package/src/assets/styles/css/index.css.map +1 -1
- package/src/assets/styles/scss/ActionsBox.scss +2 -2
- package/src/assets/styles/scss/ChannelList.scss +6 -0
- package/src/assets/styles/scss/ChannelSearch.scss +12 -1
- package/src/assets/styles/scss/Message.scss +104 -93
- package/src/assets/styles/scss/MessageInput.scss +8 -2
- package/src/assets/styles/scss/MessageInputFlat.scss +6 -0
- package/src/assets/styles/scss/MessageNotification.scss +6 -18
- package/src/assets/styles/scss/Thread.scss +25 -5
- package/src/assets/styles/scss/VirtualMessage.scss +1 -0
- package/src/assets/styles/scss/_base.scss +4 -0
- package/src/assets/version.ts +1 -1
- package/esm2015/lib/message/read-by-text.js +0 -29
- package/lib/message/read-by-text.d.ts +0 -2
|
@@ -2,10 +2,20 @@
|
|
|
2
2
|
display: block;
|
|
3
3
|
position: relative;
|
|
4
4
|
|
|
5
|
+
/*
|
|
6
|
+
min-width in a flex context: While the default min-width value is 0, for flex items it is auto.
|
|
7
|
+
This can make block elements take up much more space than desired, resulting in overflow.
|
|
8
|
+
*/
|
|
9
|
+
.str-chat__message-inner {
|
|
10
|
+
min-width: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
5
13
|
.quoted-message {
|
|
6
14
|
display: flex;
|
|
7
15
|
align-items: flex-end;
|
|
8
16
|
margin-bottom: var(--xxs-m);
|
|
17
|
+
/** clicking on the quoted message navigates to its original location in the message list*/
|
|
18
|
+
cursor: pointer;
|
|
9
19
|
|
|
10
20
|
&-inner {
|
|
11
21
|
display: flex;
|
|
@@ -61,15 +71,13 @@
|
|
|
61
71
|
&-attachment--img,
|
|
62
72
|
&-attachment-card,
|
|
63
73
|
.str-chat__gallery {
|
|
64
|
-
border-radius: var(--border-radius) var(--border-radius) var(--border-radius)
|
|
65
|
-
calc(var(--border-radius-sm) / 2);
|
|
74
|
+
border-radius: var(--border-radius) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
66
75
|
}
|
|
67
76
|
|
|
68
77
|
&.str-chat__message--has-text.str-chat__message--has-attachment {
|
|
69
78
|
.str-chat__message-attachment--img,
|
|
70
79
|
.str-chat__message-attachment-card {
|
|
71
|
-
border-radius: var(--border-radius) var(--border-radius) var(--border-radius)
|
|
72
|
-
calc(var(--border-radius-sm) / 2);
|
|
80
|
+
border-radius: var(--border-radius) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
73
81
|
}
|
|
74
82
|
}
|
|
75
83
|
|
|
@@ -78,28 +86,24 @@
|
|
|
78
86
|
.str-chat__message {
|
|
79
87
|
&-attachment--img,
|
|
80
88
|
&-attachment-card {
|
|
81
|
-
border-radius: var(--border-radius) var(--border-radius)
|
|
82
|
-
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
89
|
+
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
83
90
|
}
|
|
84
91
|
}
|
|
85
92
|
|
|
86
93
|
&.str-chat__message--has-text.str-chat__message--has-attachment {
|
|
87
94
|
.str-chat__message-attachment--img,
|
|
88
95
|
.str-chat__message-attachment-card {
|
|
89
|
-
border-radius: var(--border-radius) var(--border-radius)
|
|
90
|
-
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
96
|
+
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
91
97
|
}
|
|
92
98
|
}
|
|
93
99
|
|
|
94
100
|
.str-chat__gallery {
|
|
95
|
-
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
96
|
-
var(--border-radius);
|
|
101
|
+
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
97
102
|
}
|
|
98
103
|
|
|
99
104
|
&.str-chat__message--has-text {
|
|
100
105
|
.str-chat__gallery {
|
|
101
|
-
border-radius: var(--border-radius) var(--border-radius)
|
|
102
|
-
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
106
|
+
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
103
107
|
}
|
|
104
108
|
}
|
|
105
109
|
}
|
|
@@ -113,16 +117,14 @@
|
|
|
113
117
|
&-attachment--img,
|
|
114
118
|
&-attachment-card,
|
|
115
119
|
.str-chat__gallery {
|
|
116
|
-
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius)
|
|
117
|
-
calc(var(--border-radius-sm) / 2);
|
|
120
|
+
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
118
121
|
}
|
|
119
122
|
|
|
120
123
|
&.str-chat__message--has-text.str-chat__message--has-attachment {
|
|
121
124
|
.str-chat__message-attachment--img,
|
|
122
125
|
.str-chat__message-attachment-card,
|
|
123
126
|
.str-chat__gallery {
|
|
124
|
-
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius)
|
|
125
|
-
calc(var(--border-radius-sm) / 2);
|
|
127
|
+
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
126
128
|
}
|
|
127
129
|
}
|
|
128
130
|
|
|
@@ -131,8 +133,7 @@
|
|
|
131
133
|
&-attachment--img,
|
|
132
134
|
&-attachment-card,
|
|
133
135
|
.str-chat__gallery {
|
|
134
|
-
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
135
|
-
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
136
|
+
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
136
137
|
}
|
|
137
138
|
}
|
|
138
139
|
|
|
@@ -154,16 +155,14 @@
|
|
|
154
155
|
&-attachment--img,
|
|
155
156
|
&-attachment-card,
|
|
156
157
|
.str-chat__gallery {
|
|
157
|
-
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius)
|
|
158
|
-
calc(var(--border-radius-sm) / 2);
|
|
158
|
+
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
&.str-chat__message--has-text.str-chat__message--has-attachment {
|
|
162
162
|
.str-chat__message-attachment--img,
|
|
163
163
|
.str-chat__message-attachment-card,
|
|
164
164
|
.str-chat__gallery {
|
|
165
|
-
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius)
|
|
166
|
-
calc(var(--border-radius-sm) / 2);
|
|
165
|
+
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
167
166
|
}
|
|
168
167
|
}
|
|
169
168
|
|
|
@@ -172,8 +171,7 @@
|
|
|
172
171
|
&-attachment--img,
|
|
173
172
|
&-attachment-card,
|
|
174
173
|
.str-chat__gallery {
|
|
175
|
-
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
176
|
-
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
174
|
+
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
177
175
|
}
|
|
178
176
|
}
|
|
179
177
|
|
|
@@ -205,16 +203,14 @@
|
|
|
205
203
|
.str-chat__message {
|
|
206
204
|
&-text {
|
|
207
205
|
&-inner {
|
|
208
|
-
border-radius: var(--border-radius) var(--border-radius) var(--border-radius)
|
|
209
|
-
calc(var(--border-radius-sm) / 2);
|
|
206
|
+
border-radius: var(--border-radius) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
210
207
|
}
|
|
211
208
|
}
|
|
212
209
|
|
|
213
210
|
&--me {
|
|
214
211
|
.str-chat__message-text {
|
|
215
212
|
&-inner {
|
|
216
|
-
border-radius: var(--border-radius) var(--border-radius)
|
|
217
|
-
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
213
|
+
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
218
214
|
}
|
|
219
215
|
}
|
|
220
216
|
}
|
|
@@ -225,12 +221,10 @@
|
|
|
225
221
|
.str-chat__message {
|
|
226
222
|
&-text {
|
|
227
223
|
&-inner {
|
|
228
|
-
border-radius: var(--border-radius) var(--border-radius) var(--border-radius)
|
|
229
|
-
calc(var(--border-radius-sm) / 2);
|
|
224
|
+
border-radius: var(--border-radius) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
230
225
|
|
|
231
226
|
&--has-attachment {
|
|
232
|
-
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius)
|
|
233
|
-
var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
227
|
+
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
234
228
|
}
|
|
235
229
|
}
|
|
236
230
|
}
|
|
@@ -238,12 +232,10 @@
|
|
|
238
232
|
&--me {
|
|
239
233
|
.str-chat__message-text {
|
|
240
234
|
&-inner {
|
|
241
|
-
border-radius: var(--border-radius) var(--border-radius)
|
|
242
|
-
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
235
|
+
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
243
236
|
|
|
244
237
|
&--has-attachment {
|
|
245
|
-
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
246
|
-
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
238
|
+
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
247
239
|
}
|
|
248
240
|
}
|
|
249
241
|
}
|
|
@@ -256,16 +248,14 @@
|
|
|
256
248
|
.str-chat__message {
|
|
257
249
|
&-text {
|
|
258
250
|
&-inner {
|
|
259
|
-
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius)
|
|
260
|
-
calc(var(--border-radius-sm) / 2);
|
|
251
|
+
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
261
252
|
}
|
|
262
253
|
}
|
|
263
254
|
|
|
264
255
|
&--me {
|
|
265
256
|
.str-chat__message-text {
|
|
266
257
|
&-inner {
|
|
267
|
-
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
268
|
-
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
258
|
+
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
269
259
|
|
|
270
260
|
&--has-attachment {
|
|
271
261
|
margin: 0;
|
|
@@ -276,8 +266,7 @@
|
|
|
276
266
|
.str-chat__message-attachment-card {
|
|
277
267
|
margin: 0;
|
|
278
268
|
padding: 0;
|
|
279
|
-
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
280
|
-
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
269
|
+
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
281
270
|
}
|
|
282
271
|
}
|
|
283
272
|
}
|
|
@@ -293,6 +282,7 @@
|
|
|
293
282
|
position: relative;
|
|
294
283
|
margin: calc(var(--xxs-m) / 2) 0;
|
|
295
284
|
width: 100%;
|
|
285
|
+
transition: background-color 0.5s ease-out;
|
|
296
286
|
|
|
297
287
|
&--system {
|
|
298
288
|
text-align: center;
|
|
@@ -377,12 +367,9 @@
|
|
|
377
367
|
}
|
|
378
368
|
|
|
379
369
|
p {
|
|
380
|
-
/* Make sure really long urls and words don't break out
|
|
381
|
-
** https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/ */
|
|
382
|
-
overflow-wrap: break-word;
|
|
370
|
+
/* Make sure really long urls and words don't break out.*/
|
|
383
371
|
word-wrap: break-word;
|
|
384
|
-
|
|
385
|
-
text-overflow: ellipsis;
|
|
372
|
+
word-break: break-word;
|
|
386
373
|
|
|
387
374
|
/* Adds a hyphen where the word breaks, if supported (No Blink) */
|
|
388
375
|
-ms-hyphens: auto;
|
|
@@ -400,8 +387,7 @@
|
|
|
400
387
|
}
|
|
401
388
|
|
|
402
389
|
&--has-attachment {
|
|
403
|
-
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius)
|
|
404
|
-
calc(var(--border-radius-sm) / 2);
|
|
390
|
+
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
405
391
|
}
|
|
406
392
|
|
|
407
393
|
/* if text consists of just one emoji */
|
|
@@ -491,8 +477,7 @@
|
|
|
491
477
|
background: var(--grey-whisper);
|
|
492
478
|
border-color: transparent;
|
|
493
479
|
text-align: right;
|
|
494
|
-
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
495
|
-
var(--border-radius);
|
|
480
|
+
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
496
481
|
margin-right: 0; /* set spacing when unfocused */
|
|
497
482
|
|
|
498
483
|
&--focused {
|
|
@@ -503,8 +488,7 @@
|
|
|
503
488
|
}
|
|
504
489
|
|
|
505
490
|
&--has-attachment {
|
|
506
|
-
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
507
|
-
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
491
|
+
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
508
492
|
}
|
|
509
493
|
|
|
510
494
|
&--is-emoji {
|
|
@@ -543,6 +527,11 @@
|
|
|
543
527
|
margin-top: var(--md-m);
|
|
544
528
|
}
|
|
545
529
|
|
|
530
|
+
&--highlighted {
|
|
531
|
+
transition: background-color 0.1s ease-out;
|
|
532
|
+
background-color: var(--highlight);
|
|
533
|
+
}
|
|
534
|
+
|
|
546
535
|
&-link {
|
|
547
536
|
color: var(--primary-color);
|
|
548
537
|
font-weight: var(--font-weight-bold);
|
|
@@ -553,13 +542,6 @@
|
|
|
553
542
|
font-weight: var(--font-weight-bold);
|
|
554
543
|
}
|
|
555
544
|
|
|
556
|
-
&-url-link {
|
|
557
|
-
max-width: 150px;
|
|
558
|
-
text-overflow: ellipsis;
|
|
559
|
-
overflow: hidden;
|
|
560
|
-
white-space: nowrap;
|
|
561
|
-
}
|
|
562
|
-
|
|
563
545
|
&--inner {
|
|
564
546
|
display: flex;
|
|
565
547
|
flex-direction: column;
|
|
@@ -619,7 +601,9 @@
|
|
|
619
601
|
}
|
|
620
602
|
}
|
|
621
603
|
}
|
|
622
|
-
}
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/* __li*/
|
|
623
607
|
}
|
|
624
608
|
}
|
|
625
609
|
}
|
|
@@ -657,7 +641,6 @@
|
|
|
657
641
|
/* error messages */
|
|
658
642
|
&--error,
|
|
659
643
|
&--failed {
|
|
660
|
-
margin: 0 0 var(--lg-m) var(--xl-m);
|
|
661
644
|
font-size: var(--sm-font);
|
|
662
645
|
padding: var(--xxs-p) 0;
|
|
663
646
|
|
|
@@ -753,6 +736,8 @@
|
|
|
753
736
|
flex: initial;
|
|
754
737
|
text-align: left;
|
|
755
738
|
max-width: 460px;
|
|
739
|
+
word-wrap: break-word;
|
|
740
|
+
word-break: break-word;
|
|
756
741
|
|
|
757
742
|
&.str-chat__message-simple-text-inner--is-emoji {
|
|
758
743
|
background: transparent;
|
|
@@ -770,6 +755,12 @@
|
|
|
770
755
|
color: var(--primary-color);
|
|
771
756
|
font-weight: var(--font-weight-bold);
|
|
772
757
|
text-decoration: none;
|
|
758
|
+
|
|
759
|
+
&:active,
|
|
760
|
+
&:focus,
|
|
761
|
+
&:hover {
|
|
762
|
+
text-decoration: underline;
|
|
763
|
+
}
|
|
773
764
|
}
|
|
774
765
|
|
|
775
766
|
blockquote {
|
|
@@ -790,6 +781,12 @@
|
|
|
790
781
|
}
|
|
791
782
|
}
|
|
792
783
|
|
|
784
|
+
&--deleted-inner {
|
|
785
|
+
background: var(--dark-grey);
|
|
786
|
+
color: var(--white);
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
|
|
793
790
|
&--me {
|
|
794
791
|
.str-chat__message-simple-reply-button {
|
|
795
792
|
display: flex;
|
|
@@ -958,8 +955,7 @@
|
|
|
958
955
|
&:first-of-type {
|
|
959
956
|
border-bottom: 1px solid var(--grey-gainsboro);
|
|
960
957
|
border-top: 1px solid var(--grey-gainsboro);
|
|
961
|
-
border-radius: var(--border-radius) var(--border-radius) var(--border-radius)
|
|
962
|
-
calc(var(--border-radius-sm) / 2);
|
|
958
|
+
border-radius: var(--border-radius) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
963
959
|
}
|
|
964
960
|
}
|
|
965
961
|
}
|
|
@@ -970,8 +966,7 @@
|
|
|
970
966
|
|
|
971
967
|
&--me {
|
|
972
968
|
.str-chat__message-attachment-card {
|
|
973
|
-
border-radius: var(--border-radius) var(--border-radius-sm) var(--border-radius-sm)
|
|
974
|
-
var(--border-radius-sm);
|
|
969
|
+
border-radius: var(--border-radius) var(--border-radius-sm) var(--border-radius-sm) var(--border-radius-sm);
|
|
975
970
|
}
|
|
976
971
|
|
|
977
972
|
.str-chat__message-attachment--file {
|
|
@@ -981,8 +976,7 @@
|
|
|
981
976
|
border-radius: 0 0 calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
982
977
|
|
|
983
978
|
&:first-of-type:not(.str-chat-angular__message-attachment-file-single) {
|
|
984
|
-
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
985
|
-
var(--border-radius);
|
|
979
|
+
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
986
980
|
}
|
|
987
981
|
}
|
|
988
982
|
}
|
|
@@ -999,11 +993,12 @@
|
|
|
999
993
|
.str-chat__message-actions-box {
|
|
1000
994
|
right: unset;
|
|
1001
995
|
left: 100%;
|
|
1002
|
-
border-radius: var(--border-radius) var(--border-radius) var(--border-radius)
|
|
1003
|
-
calc(var(--border-radius-sm) / 2);
|
|
996
|
+
border-radius: var(--border-radius) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
1004
997
|
}
|
|
1005
998
|
}
|
|
1006
999
|
}
|
|
1000
|
+
|
|
1001
|
+
|
|
1007
1002
|
}
|
|
1008
1003
|
|
|
1009
1004
|
.livestream.str-chat {
|
|
@@ -1033,14 +1028,19 @@
|
|
|
1033
1028
|
}
|
|
1034
1029
|
|
|
1035
1030
|
.dark.str-chat {
|
|
1031
|
+
.str-chat__message,
|
|
1036
1032
|
.str-chat__message-simple {
|
|
1037
1033
|
&-text-inner {
|
|
1038
|
-
background: var(--
|
|
1034
|
+
background: var(--dark-grey);
|
|
1039
1035
|
color: var(--white);
|
|
1040
1036
|
|
|
1041
1037
|
&--is-emoji {
|
|
1042
1038
|
background: transparent;
|
|
1043
1039
|
}
|
|
1040
|
+
|
|
1041
|
+
.quoted-message-inner {
|
|
1042
|
+
background: var(--dark-grey);
|
|
1043
|
+
}
|
|
1044
1044
|
}
|
|
1045
1045
|
|
|
1046
1046
|
&__actions {
|
|
@@ -1058,17 +1058,22 @@
|
|
|
1058
1058
|
background: transparent;
|
|
1059
1059
|
|
|
1060
1060
|
&--content {
|
|
1061
|
-
background: var(--
|
|
1061
|
+
background: var(--dark-grey);
|
|
1062
1062
|
}
|
|
1063
1063
|
|
|
1064
1064
|
&--url {
|
|
1065
1065
|
color: var(--grey-gainsboro);
|
|
1066
1066
|
}
|
|
1067
|
+
|
|
1068
|
+
&--title {
|
|
1069
|
+
color: var(--primary-color);
|
|
1070
|
+
}
|
|
1067
1071
|
}
|
|
1068
1072
|
|
|
1069
1073
|
.str-chat__message-attachment--file {
|
|
1070
1074
|
border-color: transparent;
|
|
1071
|
-
background: var(--
|
|
1075
|
+
background: var(--dark-grey);
|
|
1076
|
+
color: var(--white10);
|
|
1072
1077
|
|
|
1073
1078
|
a,
|
|
1074
1079
|
span {
|
|
@@ -1086,25 +1091,35 @@
|
|
|
1086
1091
|
}
|
|
1087
1092
|
}
|
|
1088
1093
|
|
|
1094
|
+
.str-chat__message-simple--deleted-inner,
|
|
1095
|
+
.str-chat__message--deleted-inner {
|
|
1096
|
+
background: var(--dark-grey);
|
|
1097
|
+
color: var(--white);
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1089
1100
|
&--me {
|
|
1090
|
-
.str-chat__message-
|
|
1091
|
-
|
|
1092
|
-
background: var(--black);
|
|
1101
|
+
.str-chat__message-text-inner {
|
|
1102
|
+
background: var(--black40);
|
|
1093
1103
|
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
}
|
|
1104
|
+
&--is-emoji {
|
|
1105
|
+
background: transparent;
|
|
1097
1106
|
}
|
|
1107
|
+
}
|
|
1098
1108
|
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
}
|
|
1109
|
+
.str-chat__message-attachment-card {
|
|
1110
|
+
&--content {
|
|
1111
|
+
background: var(--black40);
|
|
1103
1112
|
}
|
|
1113
|
+
}
|
|
1104
1114
|
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1115
|
+
.str-chat__message-attachment--file {
|
|
1116
|
+
background: var(--black40);
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
.str-chat__message-simple--deleted-inner,
|
|
1120
|
+
.str-chat__message--deleted-inner {
|
|
1121
|
+
background: var(--black40);
|
|
1122
|
+
color: var(--white);
|
|
1108
1123
|
}
|
|
1109
1124
|
}
|
|
1110
1125
|
}
|
|
@@ -1136,22 +1151,19 @@
|
|
|
1136
1151
|
&--reverse {
|
|
1137
1152
|
right: 100%;
|
|
1138
1153
|
left: unset;
|
|
1139
|
-
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
1140
|
-
var(--border-radius);
|
|
1154
|
+
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
1141
1155
|
}
|
|
1142
1156
|
}
|
|
1143
1157
|
|
|
1144
1158
|
.str-chat__message-actions-box--mine {
|
|
1145
1159
|
right: 100%;
|
|
1146
1160
|
left: unset;
|
|
1147
|
-
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
1148
|
-
var(--border-radius);
|
|
1161
|
+
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
1149
1162
|
|
|
1150
1163
|
&.str-chat__message-actions-box--reverse {
|
|
1151
1164
|
left: 100%;
|
|
1152
1165
|
right: unset;
|
|
1153
|
-
border-radius: var(--border-radius) var(--border-radius) var(--border-radius)
|
|
1154
|
-
calc(var(--border-radius-sm) / 2);
|
|
1166
|
+
border-radius: var(--border-radius) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
1155
1167
|
}
|
|
1156
1168
|
}
|
|
1157
1169
|
}
|
|
@@ -1195,7 +1207,6 @@
|
|
|
1195
1207
|
// fixes the overall overflow/flex issues together with the rule above
|
|
1196
1208
|
.mml-wrap {
|
|
1197
1209
|
display: block;
|
|
1198
|
-
max-width: none;
|
|
1199
1210
|
// the max-width should match that to .str-chat__message-XXXX-text-inner
|
|
1200
1211
|
max-width: 345px;
|
|
1201
1212
|
|
|
@@ -82,6 +82,12 @@
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
.dark .str-chat__textarea {
|
|
86
|
+
textarea::placeholder {
|
|
87
|
+
color: var(--white30);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
85
91
|
.str-chat__textarea {
|
|
86
92
|
height: auto;
|
|
87
93
|
flex: 1;
|
|
@@ -104,7 +110,7 @@
|
|
|
104
110
|
box-shadow: 0 0 0 2px var(--primary-color-faded);
|
|
105
111
|
}
|
|
106
112
|
|
|
107
|
-
|
|
113
|
+
&::placeholder {
|
|
108
114
|
color: var(--black50);
|
|
109
115
|
}
|
|
110
116
|
}
|
|
@@ -117,7 +123,7 @@
|
|
|
117
123
|
position: absolute;
|
|
118
124
|
background: var(--white95);
|
|
119
125
|
box-shadow: 0 0 1px 0 var(--black30), 0 0 6px 0 var(--black10);
|
|
120
|
-
z-index:
|
|
126
|
+
z-index: 10001;
|
|
121
127
|
border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
|
|
122
128
|
margin: 0 var(--xs-m);
|
|
123
129
|
max-height: 360px;
|
|
@@ -43,6 +43,8 @@
|
|
|
43
43
|
display: flex;
|
|
44
44
|
text-align: start;
|
|
45
45
|
align-items: flex-end;
|
|
46
|
+
word-break: break-all;
|
|
47
|
+
word-wrap: break-word;
|
|
46
48
|
|
|
47
49
|
.str-chat__message-attachment {
|
|
48
50
|
margin: 0;
|
|
@@ -287,6 +289,10 @@
|
|
|
287
289
|
fill: var(--white);
|
|
288
290
|
}
|
|
289
291
|
}
|
|
292
|
+
|
|
293
|
+
&-quoted .quoted-message-preview-content {
|
|
294
|
+
background: var(--black20);
|
|
295
|
+
}
|
|
290
296
|
}
|
|
291
297
|
|
|
292
298
|
&.commerce {
|
|
@@ -15,35 +15,23 @@
|
|
|
15
15
|
align-self: flex-end;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
&-scroll-
|
|
18
|
+
&-scroll-to-latest {
|
|
19
19
|
cursor: pointer;
|
|
20
|
-
display:
|
|
20
|
+
display: flex;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
align-items: center;
|
|
21
23
|
width: 42px;
|
|
22
24
|
height: 42px;
|
|
23
|
-
background-size: 14px auto;
|
|
24
25
|
border-radius: 50%;
|
|
25
26
|
background: var(--white);
|
|
27
|
+
color: var(--primary-color);
|
|
26
28
|
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
|
|
27
29
|
|
|
28
|
-
&::before {
|
|
29
|
-
position: absolute;
|
|
30
|
-
top: calc(50% - 8px);
|
|
31
|
-
left: calc(50% - 6px);
|
|
32
|
-
transform: rotate(-45deg);
|
|
33
|
-
display: block;
|
|
34
|
-
width: 12px;
|
|
35
|
-
height: 12px;
|
|
36
|
-
content: '';
|
|
37
|
-
border: 2px solid var(--primary-color);
|
|
38
|
-
border-width: 0 0 2px 2px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
30
|
&-unread-count {
|
|
42
31
|
font-size: 10px;
|
|
43
|
-
position: relative;
|
|
44
32
|
left: 50%;
|
|
45
33
|
transform: translateX(-50%);
|
|
46
|
-
bottom:
|
|
34
|
+
bottom: 30px;
|
|
47
35
|
}
|
|
48
36
|
}
|
|
49
37
|
}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
flex: 1 0 300px;
|
|
4
4
|
min-width: 300px;
|
|
5
5
|
max-width: 300px;
|
|
6
|
-
overflow-y: hidden;
|
|
7
6
|
font-family: var(--second-font);
|
|
8
7
|
overflow: hidden;
|
|
9
8
|
max-height: 100%;
|
|
@@ -62,11 +61,18 @@
|
|
|
62
61
|
.str-chat__message:first-of-type .str-chat__message-inner {
|
|
63
62
|
margin-left: unset;
|
|
64
63
|
margin-right: unset;
|
|
64
|
+
width: 100%;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
.str-chat__message-attachment.str-chat__message-attachment
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
.str-chat__message-attachment.str-chat__message-attachment {
|
|
68
|
+
&--file {
|
|
69
|
+
border-radius: var(--border-radius-md);
|
|
70
|
+
border-bottom: 1px solid var(--grey-whisper);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&--media {
|
|
74
|
+
width: 100%;
|
|
75
|
+
}
|
|
70
76
|
}
|
|
71
77
|
|
|
72
78
|
.quoted-message {
|
|
@@ -207,7 +213,8 @@
|
|
|
207
213
|
background: var(--white5);
|
|
208
214
|
|
|
209
215
|
&-header {
|
|
210
|
-
background: var(--
|
|
216
|
+
background: var(--dark-grey);
|
|
217
|
+
|
|
211
218
|
box-shadow: 0 7px 9px 0 var(--black5), 0 1px 0 0 var(--black5);
|
|
212
219
|
color: var(--white);
|
|
213
220
|
}
|
|
@@ -224,6 +231,11 @@
|
|
|
224
231
|
}
|
|
225
232
|
}
|
|
226
233
|
}
|
|
234
|
+
|
|
235
|
+
/** Quoted message preview in thread should not be squeezed to less than 100% for better readability */
|
|
236
|
+
.str-chat__input-flat-quoted .quoted-message-preview-content {
|
|
237
|
+
max-width: 100%;
|
|
238
|
+
}
|
|
227
239
|
}
|
|
228
240
|
|
|
229
241
|
.team {
|
|
@@ -304,3 +316,11 @@
|
|
|
304
316
|
}
|
|
305
317
|
}
|
|
306
318
|
}
|
|
319
|
+
|
|
320
|
+
.dark.str-chat.messaging {
|
|
321
|
+
.str-chat__thread-list {
|
|
322
|
+
.quoted-message-inner {
|
|
323
|
+
background: var(--dark-grey);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '3.
|
|
1
|
+
export const version = '3.2.0';
|