stream-chat-react 10.4.0 → 10.5.0-alpha.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/CHANGELOG.md +2296 -0
- package/dist/assets/assets/EmojiOneColor.woff2 +0 -0
- package/dist/assets/assets/NotoColorEmoji-flags.woff2 +0 -0
- package/dist/assets/assets/Poweredby_100px-White_VertText.png +0 -0
- package/dist/assets/assets/str-chat__reaction-list-sprite@1x.png +0 -0
- package/dist/assets/assets/str-chat__reaction-list-sprite@2x.png +0 -0
- package/dist/assets/assets/str-chat__reaction-list-sprite@3x.png +0 -0
- package/dist/browser.full-bundle.js +511 -455
- package/dist/browser.full-bundle.js.map +1 -1
- package/dist/browser.full-bundle.min.js +4 -4
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/components/Attachment/AttachmentContainer.d.ts.map +1 -1
- package/dist/components/Attachment/AttachmentContainer.js +6 -6
- package/dist/components/Attachment/attachment-sizing.d.ts.map +1 -1
- package/dist/components/Attachment/attachment-sizing.js +17 -9
- package/dist/components/Channel/Channel.d.ts.map +1 -1
- package/dist/components/Channel/Channel.js +4 -0
- package/dist/components/Channel/channelState.d.ts +167 -1
- package/dist/components/Channel/channelState.d.ts.map +1 -1
- package/dist/components/Message/MessageSimple.d.ts.map +1 -1
- package/dist/components/Message/MessageSimple.js +7 -1
- package/dist/components/Message/MessageText.js +1 -1
- package/dist/components/MessageInput/hooks/useMessageInputState.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useSubmitHandler.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useSubmitHandler.js +69 -28
- package/dist/context/ChannelActionContext.d.ts +2 -1
- package/dist/context/ChannelActionContext.d.ts.map +1 -1
- package/dist/context/ChannelStateContext.d.ts +14 -1
- package/dist/context/ChannelStateContext.d.ts.map +1 -1
- package/dist/css/index.css +1 -1
- package/dist/css/index.css.map +1 -1
- package/dist/css/v2/index.css +5478 -1
- package/dist/css/v2/index.css.map +1 -1
- package/dist/css/v2/index.layout.css +1 -1
- package/dist/css/v2/index.layout.css.map +1 -1
- package/dist/index.cjs.js +101 -45
- package/dist/index.cjs.js.map +1 -1
- package/dist/scss/Attachment.scss +20 -45
- package/dist/scss/Audio.scss +0 -1
- package/dist/scss/ChannelList.scss +0 -14
- package/dist/scss/ChannelSearch.scss +8 -8
- package/dist/scss/Message.scss +41 -26
- package/dist/scss/MessageCommerce.scss +1 -1
- package/dist/scss/Thread.scss +2 -39
- package/dist/scss/VirtualMessage.scss +6 -2
- package/dist/scss/v2/AttachmentList/AttachmentList-layout.scss +18 -13
- package/dist/scss/v2/ChannelList/ChannelList-layout.scss +0 -14
- package/dist/scss/v2/ChannelSearch/ChannelSearch-layout.scss +51 -68
- package/dist/scss/v2/ChannelSearch/ChannelSearch-theme.scss +0 -48
- package/dist/scss/v2/MessageList/MessageList-layout.scss +4 -1
- package/dist/scss/v2/MessageList/VirtualizedMessageList-layout.scss +0 -21
- package/dist/scss/v2/MessageList/VirtualizedMessageList-theme.scss +0 -9
- package/dist/scss/v2/Notification/NotificationList-theme.scss +2 -2
- package/dist/scss/v2/Tooltip/Tooltip-layout.scss +1 -1
- package/dist/scss/v2/_utils.scss +8 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,30 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var(#{$max-height-css-var}),
|
|
4
|
-
min(var(#{$max-width-css-var}, 1000000) / var(--original-width, 1000000), 1px) *
|
|
5
|
-
var(--original-height, 1000000)
|
|
6
|
-
);
|
|
1
|
+
.str-chat__attachment {
|
|
2
|
+
max-width: 450px;
|
|
7
3
|
}
|
|
8
4
|
|
|
9
|
-
|
|
10
|
-
.str-chat__message-attachment {
|
|
11
|
-
--attachment-max-width: 450px;
|
|
12
|
-
--video-width: 300px;
|
|
13
|
-
|
|
14
|
-
max-width: var(--attachment-max-width);
|
|
15
|
-
}
|
|
5
|
+
$video-width: 300px;
|
|
16
6
|
|
|
17
|
-
.str-chat__message-attachment
|
|
18
|
-
|
|
19
|
-
width: var(--video-width);
|
|
7
|
+
.str-chat__message-attachment--video:not(.str-chat__message-attachment--card) {
|
|
8
|
+
width: $video-width;
|
|
20
9
|
}
|
|
21
10
|
|
|
22
11
|
.str-chat__player-wrapper {
|
|
23
12
|
position: relative;
|
|
24
13
|
padding-top: 56.25%; /* Player ratio: 100 / (1280 / 720) */
|
|
25
|
-
display: flex;
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
|
|
28
14
|
.react-player,
|
|
29
15
|
.str-chat__video-angular {
|
|
30
16
|
position: absolute;
|
|
@@ -32,33 +18,27 @@
|
|
|
32
18
|
left: 0;
|
|
33
19
|
width: 100%;
|
|
34
20
|
height: 100%;
|
|
35
|
-
min-height: 0;
|
|
36
|
-
max-height: 100%;
|
|
37
21
|
}
|
|
38
22
|
}
|
|
39
23
|
|
|
40
24
|
.str-chat__message-attachment-dynamic-size {
|
|
41
|
-
|
|
25
|
+
$max-height: 300px;
|
|
42
26
|
|
|
43
|
-
max-height:
|
|
27
|
+
max-height: $max-height;
|
|
44
28
|
|
|
45
29
|
.str-chat__player-wrapper {
|
|
46
|
-
@include clamped-height-from-original-image-dimensions(
|
|
47
|
-
'--video-max-height',
|
|
48
|
-
'--attachment-max-width'
|
|
49
|
-
);
|
|
50
30
|
padding-top: 0;
|
|
51
31
|
position: static;
|
|
52
32
|
// CDN resize requires to have max-height/height and max-width set on this element - React
|
|
53
|
-
max-height:
|
|
54
|
-
max-width:
|
|
33
|
+
max-height: $max-height;
|
|
34
|
+
max-width: $video-width;
|
|
55
35
|
|
|
56
36
|
.str-chat__video-angular,
|
|
57
37
|
.react-player {
|
|
58
38
|
position: static;
|
|
59
39
|
// CDN resize requires to have max-height/height and max-width set on this element - Angular
|
|
60
|
-
max-height:
|
|
61
|
-
max-width:
|
|
40
|
+
max-height: $max-height;
|
|
41
|
+
max-width: $video-width;
|
|
62
42
|
}
|
|
63
43
|
}
|
|
64
44
|
}
|
|
@@ -76,11 +56,12 @@
|
|
|
76
56
|
|
|
77
57
|
.str-chat__message {
|
|
78
58
|
&-attachment {
|
|
79
|
-
--attachment-max-width: 375px;
|
|
80
59
|
width: 100%;
|
|
60
|
+
max-width: 375px;
|
|
81
61
|
|
|
82
62
|
border-radius: var(--border-radius);
|
|
83
|
-
|
|
63
|
+
margin: var(--xs-m) auto var(--xs-m) 0;
|
|
64
|
+
padding: 0;
|
|
84
65
|
}
|
|
85
66
|
|
|
86
67
|
/** Let giphies stretch their containers */
|
|
@@ -88,20 +69,17 @@
|
|
|
88
69
|
max-width: unset;
|
|
89
70
|
}
|
|
90
71
|
|
|
91
|
-
.str-chat__message-attachment {
|
|
92
|
-
margin: var(--xs-m) 0 var(--xs-m) auto;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
72
|
&--me {
|
|
96
73
|
.str-chat__message-attachment {
|
|
97
74
|
padding-left: 0;
|
|
75
|
+
margin: var(--xs-m) 0 var(--xs-m) auto;
|
|
98
76
|
}
|
|
99
77
|
}
|
|
100
78
|
}
|
|
101
79
|
|
|
102
80
|
.str-chat__message-team.thread-list {
|
|
103
81
|
.str-chat__message-attachment {
|
|
104
|
-
|
|
82
|
+
max-width: 200px;
|
|
105
83
|
}
|
|
106
84
|
}
|
|
107
85
|
|
|
@@ -209,9 +187,9 @@
|
|
|
209
187
|
}
|
|
210
188
|
|
|
211
189
|
&--image {
|
|
212
|
-
|
|
213
|
-
max-height:
|
|
214
|
-
max-width:
|
|
190
|
+
height: auto;
|
|
191
|
+
max-height: 300px;
|
|
192
|
+
max-width: 100%;
|
|
215
193
|
border-radius: 0;
|
|
216
194
|
|
|
217
195
|
&:hover {
|
|
@@ -219,10 +197,7 @@
|
|
|
219
197
|
}
|
|
220
198
|
|
|
221
199
|
img {
|
|
222
|
-
|
|
223
|
-
'--image-max-height',
|
|
224
|
-
'--attachment-max-width'
|
|
225
|
-
);
|
|
200
|
+
height: inherit;
|
|
226
201
|
width: auto;
|
|
227
202
|
max-height: inherit;
|
|
228
203
|
display: block;
|
package/dist/scss/Audio.scss
CHANGED
|
@@ -125,17 +125,3 @@
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
|
|
129
|
-
.str-chat__channel-list.str-chat__channel-list-react {
|
|
130
|
-
overflow: hidden;
|
|
131
|
-
|
|
132
|
-
.str-chat__channel-list-messenger-react {
|
|
133
|
-
overflow: hidden;
|
|
134
|
-
padding-bottom: var(--sm-p);
|
|
135
|
-
|
|
136
|
-
.str-chat__channel-list-messenger-react__main {
|
|
137
|
-
overflow-y: auto;
|
|
138
|
-
height: 100%;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
.str-chat__channel-search {
|
|
2
2
|
--channel-search-input-height: 30px;
|
|
3
3
|
|
|
4
|
-
padding: var(--md-p);
|
|
4
|
+
padding: var(--md-p) var(--md-p) 0;
|
|
5
5
|
display: flex;
|
|
6
|
-
flex-direction: column;
|
|
7
6
|
align-items: center;
|
|
8
7
|
position: relative;
|
|
9
8
|
background: var(--grey-gainsboro);
|
|
10
9
|
|
|
11
10
|
input {
|
|
12
|
-
|
|
11
|
+
flex: 1;
|
|
13
12
|
background: var(--grey-whisper);
|
|
14
13
|
border: 1px solid transparent;
|
|
15
14
|
outline: none;
|
|
@@ -32,7 +31,9 @@
|
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
&-container {
|
|
35
|
-
|
|
34
|
+
position: absolute;
|
|
35
|
+
width: 300px;
|
|
36
|
+
z-index: 2;
|
|
36
37
|
padding: 8px;
|
|
37
38
|
|
|
38
39
|
&-searching {
|
|
@@ -68,10 +69,7 @@
|
|
|
68
69
|
&-container.popup {
|
|
69
70
|
border-radius: var(--border-radius-md);
|
|
70
71
|
background: var(--white-smoke);
|
|
71
|
-
position: absolute;
|
|
72
|
-
z-index: 2;
|
|
73
72
|
left: 0;
|
|
74
|
-
right: 0;
|
|
75
73
|
top: calc(var(--channel-search-input-height) + 40px);
|
|
76
74
|
box-shadow: 0 7px 9px 0 var(--border), 0 1px 0 0 var(--border);
|
|
77
75
|
border: 1px solid var(--border);
|
|
@@ -88,8 +86,10 @@
|
|
|
88
86
|
}
|
|
89
87
|
|
|
90
88
|
&-container.inline {
|
|
91
|
-
|
|
89
|
+
top: 64px;
|
|
90
|
+
right: 0;
|
|
92
91
|
background: var(--grey-gainsboro);
|
|
92
|
+
height: calc(100vh - 60px);
|
|
93
93
|
|
|
94
94
|
.str-chat__channel-search-result {
|
|
95
95
|
&:hover {
|
package/dist/scss/Message.scss
CHANGED
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
/* group styling */
|
|
84
84
|
&--top,
|
|
85
85
|
&--single {
|
|
86
|
-
|
|
86
|
+
margin: 24px 0 0;
|
|
87
87
|
|
|
88
88
|
.str-chat__message {
|
|
89
89
|
&-attachment--img,
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
&--bottom {
|
|
179
|
-
|
|
179
|
+
margin: 0 0 24px;
|
|
180
180
|
|
|
181
181
|
.str-chat__message {
|
|
182
182
|
&-attachment--img,
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
&--single {
|
|
220
|
-
|
|
220
|
+
margin-bottom: var(--md-m);
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
&--top,
|
|
@@ -233,14 +233,16 @@
|
|
|
233
233
|
.str-chat__message {
|
|
234
234
|
&-text {
|
|
235
235
|
&-inner {
|
|
236
|
-
border-radius: var(--border-radius) var(--border-radius) var(--border-radius)
|
|
236
|
+
border-radius: var(--border-radius) var(--border-radius) var(--border-radius)
|
|
237
|
+
calc(var(--border-radius-sm) / 2);
|
|
237
238
|
}
|
|
238
239
|
}
|
|
239
240
|
|
|
240
241
|
&--me {
|
|
241
242
|
.str-chat__message-text {
|
|
242
243
|
&-inner {
|
|
243
|
-
border-radius: var(--border-radius) var(--border-radius)
|
|
244
|
+
border-radius: var(--border-radius) var(--border-radius)
|
|
245
|
+
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
244
246
|
}
|
|
245
247
|
}
|
|
246
248
|
}
|
|
@@ -251,10 +253,12 @@
|
|
|
251
253
|
.str-chat__message {
|
|
252
254
|
&-text {
|
|
253
255
|
&-inner {
|
|
254
|
-
border-radius: var(--border-radius) var(--border-radius) var(--border-radius)
|
|
256
|
+
border-radius: var(--border-radius) var(--border-radius) var(--border-radius)
|
|
257
|
+
calc(var(--border-radius-sm) / 2);
|
|
255
258
|
|
|
256
259
|
&--has-attachment {
|
|
257
|
-
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius)
|
|
260
|
+
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius)
|
|
261
|
+
var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
258
262
|
}
|
|
259
263
|
}
|
|
260
264
|
}
|
|
@@ -262,10 +266,12 @@
|
|
|
262
266
|
&--me {
|
|
263
267
|
.str-chat__message-text {
|
|
264
268
|
&-inner {
|
|
265
|
-
border-radius: var(--border-radius) var(--border-radius)
|
|
269
|
+
border-radius: var(--border-radius) var(--border-radius)
|
|
270
|
+
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
266
271
|
|
|
267
272
|
&--has-attachment {
|
|
268
|
-
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
273
|
+
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
274
|
+
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
269
275
|
}
|
|
270
276
|
}
|
|
271
277
|
}
|
|
@@ -278,14 +284,16 @@
|
|
|
278
284
|
.str-chat__message {
|
|
279
285
|
&-text {
|
|
280
286
|
&-inner {
|
|
281
|
-
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius)
|
|
287
|
+
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius)
|
|
288
|
+
calc(var(--border-radius-sm) / 2);
|
|
282
289
|
}
|
|
283
290
|
}
|
|
284
291
|
|
|
285
292
|
&--me {
|
|
286
293
|
.str-chat__message-text {
|
|
287
294
|
&-inner {
|
|
288
|
-
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
295
|
+
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
296
|
+
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
289
297
|
|
|
290
298
|
&--has-attachment {
|
|
291
299
|
margin: 0;
|
|
@@ -296,7 +304,8 @@
|
|
|
296
304
|
.str-chat__message-attachment-card {
|
|
297
305
|
margin: 0;
|
|
298
306
|
padding: 0;
|
|
299
|
-
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
307
|
+
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
308
|
+
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
300
309
|
}
|
|
301
310
|
}
|
|
302
311
|
}
|
|
@@ -310,8 +319,7 @@
|
|
|
310
319
|
align-items: flex-end;
|
|
311
320
|
padding: 0;
|
|
312
321
|
position: relative;
|
|
313
|
-
|
|
314
|
-
padding-bottom: var(--xxs-p);
|
|
322
|
+
margin: calc(var(--xxs-m) / 2) 0;
|
|
315
323
|
width: 100%;
|
|
316
324
|
transition: background-color 0.5s ease-out;
|
|
317
325
|
|
|
@@ -435,11 +443,11 @@
|
|
|
435
443
|
}
|
|
436
444
|
|
|
437
445
|
&-attachment {
|
|
438
|
-
--attachment-max-width: 480px;
|
|
439
|
-
|
|
440
446
|
&--img {
|
|
441
447
|
width: 100%;
|
|
448
|
+
max-width: 480px;
|
|
442
449
|
display: block;
|
|
450
|
+
height: inherit;
|
|
443
451
|
cursor: -moz-zoom-in;
|
|
444
452
|
cursor: -webkit-zoom-in;
|
|
445
453
|
cursor: zoom-in;
|
|
@@ -473,6 +481,7 @@
|
|
|
473
481
|
/* me */
|
|
474
482
|
&--me {
|
|
475
483
|
display: inline-flex;
|
|
484
|
+
margin: var(--xxs-m) 0;
|
|
476
485
|
justify-content: flex-end;
|
|
477
486
|
|
|
478
487
|
.str-chat__message {
|
|
@@ -543,6 +552,7 @@
|
|
|
543
552
|
// CDN resize requires max-width to be set on this element
|
|
544
553
|
max-width: inherit;
|
|
545
554
|
display: block;
|
|
555
|
+
height: inherit;
|
|
546
556
|
object-fit: cover;
|
|
547
557
|
border: none;
|
|
548
558
|
}
|
|
@@ -557,7 +567,7 @@
|
|
|
557
567
|
}
|
|
558
568
|
|
|
559
569
|
&--with-reactions {
|
|
560
|
-
|
|
570
|
+
margin-top: var(--md-m);
|
|
561
571
|
}
|
|
562
572
|
|
|
563
573
|
&--highlighted {
|
|
@@ -586,16 +596,20 @@
|
|
|
586
596
|
.str-chat {
|
|
587
597
|
&__message,
|
|
588
598
|
&__message--me {
|
|
599
|
+
margin: calc(var(--xxs-m) / 2) 0;
|
|
600
|
+
|
|
589
601
|
&--with-reactions {
|
|
590
|
-
|
|
602
|
+
margin-top: var(--lg-m);
|
|
591
603
|
}
|
|
592
604
|
}
|
|
593
605
|
|
|
594
606
|
&__message-attachment--image {
|
|
607
|
+
margin: calc(var(--xxs-m) / 2) 0;
|
|
595
608
|
max-width: 480px;
|
|
596
609
|
}
|
|
597
610
|
|
|
598
611
|
&__message-attachment--card {
|
|
612
|
+
margin: calc(var(--xxs-m) / 2) 0;
|
|
599
613
|
line-height: normal;
|
|
600
614
|
}
|
|
601
615
|
|
|
@@ -848,8 +862,8 @@
|
|
|
848
862
|
flex-direction: row-reverse;
|
|
849
863
|
}
|
|
850
864
|
|
|
851
|
-
.str-chat__message-attachment {
|
|
852
|
-
|
|
865
|
+
.str-chat__message-attachment--image {
|
|
866
|
+
max-width: 460px;
|
|
853
867
|
}
|
|
854
868
|
|
|
855
869
|
&-text-inner {
|
|
@@ -949,6 +963,7 @@
|
|
|
949
963
|
}
|
|
950
964
|
|
|
951
965
|
.str-chat__message-attachment--file {
|
|
966
|
+
margin: 0;
|
|
952
967
|
background: var(--white);
|
|
953
968
|
border-color: transparent;
|
|
954
969
|
border: 1px solid var(--grey-gainsboro);
|
|
@@ -1197,20 +1212,20 @@
|
|
|
1197
1212
|
}
|
|
1198
1213
|
|
|
1199
1214
|
@media screen and (max-width: 375px) {
|
|
1200
|
-
.str-chat__message .str-chat__message-attachment {
|
|
1201
|
-
|
|
1215
|
+
.str-chat__message .str-chat__message-attachment--img {
|
|
1216
|
+
max-width: 235px;
|
|
1202
1217
|
}
|
|
1203
1218
|
}
|
|
1204
1219
|
|
|
1205
1220
|
@media screen and (max-width: 414px) {
|
|
1206
|
-
.str-chat__message .str-chat__message-attachment {
|
|
1207
|
-
|
|
1221
|
+
.str-chat__message .str-chat__message-attachment--img {
|
|
1222
|
+
max-width: 274px;
|
|
1208
1223
|
}
|
|
1209
1224
|
}
|
|
1210
1225
|
|
|
1211
1226
|
@media only screen and (device-width: 375px) and (-webkit-device-pixel-ratio: 3) {
|
|
1212
|
-
.str-chat__message .str-chat__message-attachment {
|
|
1213
|
-
|
|
1227
|
+
.str-chat__message .str-chat__message-attachment--img {
|
|
1228
|
+
max-width: 240px;
|
|
1214
1229
|
}
|
|
1215
1230
|
}
|
|
1216
1231
|
|
package/dist/scss/Thread.scss
CHANGED
|
@@ -10,48 +10,11 @@
|
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
padding-top: 0;
|
|
12
12
|
|
|
13
|
-
.str-
|
|
14
|
-
|
|
15
|
-
padding-right: var(--md-p);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&.str-chat__thread-container {
|
|
19
|
-
max-height: 100%;
|
|
13
|
+
.str-chat__thread-container {
|
|
14
|
+
height: 100%;
|
|
20
15
|
display: flex;
|
|
21
16
|
flex-direction: column;
|
|
22
17
|
width: 100%;
|
|
23
|
-
|
|
24
|
-
.str-chat__parent-message-li {
|
|
25
|
-
.str-chat__message {
|
|
26
|
-
padding-left: var(--md-p);
|
|
27
|
-
padding-right: var(--md-p);
|
|
28
|
-
|
|
29
|
-
.str-chat__message-inner {
|
|
30
|
-
min-width: 0;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.str-chat__message-attachment--image,
|
|
34
|
-
.str-chat__message-attachment-card {
|
|
35
|
-
border-radius: var(--border-radius) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2) ;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.str-chat__message--me {
|
|
40
|
-
.str-chat__message-attachment--img,
|
|
41
|
-
.str-chat__message-attachment-card {
|
|
42
|
-
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.str-chat__message--with-reactions {
|
|
47
|
-
padding-top: var(--xl-p);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.str-chat__message:not(.str-chat__message--has-attachment) {
|
|
51
|
-
padding-top: var(--xs-p);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
}
|
|
55
18
|
}
|
|
56
19
|
|
|
57
20
|
&--full {
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
font-size: 0;
|
|
4
4
|
|
|
5
5
|
.str-chat__virtual-list-message-wrapper {
|
|
6
|
-
padding
|
|
7
|
-
padding-right: var(--xl-p);
|
|
6
|
+
padding: 1px var(--xl-p);
|
|
8
7
|
width: 100%;
|
|
9
8
|
|
|
10
9
|
.str-chat__message-simple {
|
|
10
|
+
padding-bottom: var(--sm-p);
|
|
11
|
+
|
|
11
12
|
&.str-chat__virtual-message__wrapper--first {
|
|
12
13
|
padding-bottom: 0;
|
|
13
14
|
padding-left: var(--xl-p);
|
|
@@ -39,6 +40,7 @@
|
|
|
39
40
|
|
|
40
41
|
&.str-chat__virtual-message__wrapper--group {
|
|
41
42
|
align-items: center;
|
|
43
|
+
padding-bottom: 0;
|
|
42
44
|
padding-left: var(--xl-p);
|
|
43
45
|
|
|
44
46
|
&.str-chat__message-simple--me {
|
|
@@ -252,6 +254,8 @@
|
|
|
252
254
|
}
|
|
253
255
|
|
|
254
256
|
.str-chat__virtual-message__wrapper--group {
|
|
257
|
+
padding-top: 0;
|
|
258
|
+
|
|
255
259
|
> .str-chat__avatar {
|
|
256
260
|
display: none;
|
|
257
261
|
}
|
|
@@ -2,25 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
.str-chat {
|
|
4
4
|
/* The margin applied to every attachment in the attachment list */
|
|
5
|
-
--str-chat__attachment-margin: var(--str-chat__spacing-0_5);
|
|
5
|
+
--str-chat__attachment-margin: var(--str-chat__spacing-px -0_5);
|
|
6
|
+
|
|
7
|
+
/* The maximum allowed width and height of attachments, in case of gallery images this is the maximum size of the whole gallery (not just for a single image inside the gallery). There are some constraints for the acceptable values you can provide for this variable, [Angular documentation](https://getstream.io/chat/docs/sdk/angular/components/AttachmentListComponent/#maximum-size), [React documentation](https://getstream.io/chat/docs/sdk/react/message-components/attachment/#image-and-video-sizing). */
|
|
8
|
+
--str-chat__attachment-max-width: unset;
|
|
9
|
+
|
|
10
|
+
/* The height of scraped images, the default value is optimized for 1.91:1 aspect ratio */
|
|
11
|
+
--str-chat__scraped-image-height: unset;
|
|
12
|
+
|
|
13
|
+
/* The height of scraped videos, the default value is optimized for 16:9 aspect ratio */
|
|
14
|
+
--str-chat__scraped-video-height: unset;
|
|
6
15
|
|
|
7
16
|
/* The height of GIFs */
|
|
8
17
|
--str-chat__gif-height: calc(var(--str-chat__spacing-px) * 200);
|
|
18
|
+
|
|
19
|
+
/* The height of videos, the default value is the mase as `--str-chat__attachment-max-width`. In Angular SDK this is the maximum height, the video can be smaller based on the aspect ratio */
|
|
20
|
+
--str-chat__video-height: unset;
|
|
9
21
|
}
|
|
10
22
|
|
|
11
23
|
.str-chat__attachment-list {
|
|
12
|
-
/* The maximum allowed width and height of attachments, in case of gallery images this is the maximum size of the whole gallery (not just for a single image inside the gallery). There are some constraints for the acceptable values you can provide for this variable, [Angular documentation](https://getstream.io/chat/docs/sdk/angular/components/AttachmentListComponent/#maximum-size), [React documentation](https://getstream.io/chat/docs/sdk/react/message-components/attachment/#image-and-video-sizing). */
|
|
13
24
|
--str-chat__attachment-max-width: calc(
|
|
14
25
|
var(--str-chat__message-max-width) - calc(2 * var(--str-chat__attachment-margin))
|
|
15
26
|
);
|
|
16
27
|
|
|
17
|
-
/* The maximum height of videos, the default value is the mase as `--str-chat__attachment-max-width`. The rendered video can be smaller based on the aspect ratio */
|
|
18
28
|
--str-chat__video-height: var(--str-chat__attachment-max-width);
|
|
19
29
|
|
|
20
|
-
/* The height of scraped images, the default value is optimized for 1.91:1 aspect ratio */
|
|
21
30
|
--str-chat__scraped-image-height: calc(var(--str-chat__attachment-max-width) * calc(1 / 1.91));
|
|
22
31
|
|
|
23
|
-
/* The height of scraped videos, the default value is optimized for 16:9 aspect ratio */
|
|
24
32
|
--str-chat__scraped-video-height: calc(var(--str-chat__attachment-max-width) * calc(9 / 16));
|
|
25
33
|
|
|
26
34
|
display: flex;
|
|
@@ -123,8 +131,6 @@
|
|
|
123
131
|
min-width: 0;
|
|
124
132
|
// CDN resize requires max-width to be present on this element - React
|
|
125
133
|
max-width: $maxWidth;
|
|
126
|
-
display: flex;
|
|
127
|
-
flex-direction: column;
|
|
128
134
|
|
|
129
135
|
.react-player,
|
|
130
136
|
.str-chat__video-angular {
|
|
@@ -132,8 +138,6 @@
|
|
|
132
138
|
width: 100%;
|
|
133
139
|
// CDN resize requires max-width to be present on this element - Angular
|
|
134
140
|
max-width: $maxWidth;
|
|
135
|
-
max-height: 100%;
|
|
136
|
-
min-height: 0;
|
|
137
141
|
}
|
|
138
142
|
}
|
|
139
143
|
}
|
|
@@ -145,13 +149,14 @@
|
|
|
145
149
|
.str-chat__message-attachment--video.str-chat__message-attachment-dynamic-size:not(.str-chat__message-attachment--card) {
|
|
146
150
|
$maxHeight: var(--str-chat__video-height);
|
|
147
151
|
|
|
152
|
+
@include utils.clamped-height-from-original-image-dimensions(
|
|
153
|
+
'--str-chat__video-height',
|
|
154
|
+
'--str-chat__attachment-max-width'
|
|
155
|
+
);
|
|
156
|
+
|
|
148
157
|
max-height: $maxHeight;
|
|
149
158
|
|
|
150
159
|
.str-chat__player-wrapper {
|
|
151
|
-
@include utils.clamped-height-from-original-image-dimensions(
|
|
152
|
-
'--str-chat__video-height',
|
|
153
|
-
'--str-chat__attachment-max-width'
|
|
154
|
-
);
|
|
155
160
|
// CDN resize requires max-height to be present on this element - React
|
|
156
161
|
max-height: $maxHeight;
|
|
157
162
|
}
|
|
@@ -39,17 +39,3 @@
|
|
|
39
39
|
display: none;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
.str-chat__channel-list-react {
|
|
45
|
-
overflow: hidden;
|
|
46
|
-
|
|
47
|
-
.str-chat__channel-list-messenger-react {
|
|
48
|
-
overflow: hidden;
|
|
49
|
-
padding-bottom: var(--str-chat__spacing-2_5);
|
|
50
|
-
|
|
51
|
-
.str-chat__channel-list-messenger-react__main {
|
|
52
|
-
overflow-y: auto;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|