stream-chat-react 6.7.2 → 6.8.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/README.md +1 -1
- package/dist/browser.full-bundle.js +2711 -259
- package/dist/browser.full-bundle.js.map +1 -1
- package/dist/browser.full-bundle.min.js +10 -3
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/components/Channel/Channel.d.ts +2 -0
- package/dist/components/Channel/Channel.d.ts.map +1 -1
- package/dist/components/Channel/Channel.js +8 -3
- package/dist/components/ChannelPreview/ChannelPreview.d.ts.map +1 -1
- package/dist/components/ChannelPreview/ChannelPreview.js +10 -0
- package/dist/components/MessageInput/DefaultTriggerProvider.d.ts.map +1 -1
- package/dist/components/MessageInput/DefaultTriggerProvider.js +1 -0
- package/dist/components/MessageInput/MessageInput.d.ts +2 -0
- package/dist/components/MessageInput/MessageInput.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useMessageInputState.d.ts +1 -0
- package/dist/components/MessageInput/hooks/useMessageInputState.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useMessageInputState.js +6 -1
- package/dist/components/MessageInput/hooks/useUserTrigger.d.ts +1 -0
- package/dist/components/MessageInput/hooks/useUserTrigger.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useUserTrigger.js +9 -11
- package/dist/components/MessageInput/hooks/utils.d.ts +15 -0
- package/dist/components/MessageInput/hooks/utils.d.ts.map +1 -0
- package/dist/components/MessageInput/hooks/utils.js +114 -0
- package/dist/css/index.css +1 -7329
- package/dist/index.cjs.js +113 -16
- package/dist/index.cjs.js.map +1 -1
- package/dist/scss/ActionsBox.scss +2 -0
- package/dist/scss/Attachment.scss +4 -0
- package/dist/scss/AttachmentActions.scss +1 -0
- package/dist/scss/Audio.scss +2 -0
- package/dist/scss/Avatar.scss +2 -0
- package/dist/scss/Card.scss +6 -2
- package/dist/scss/ChannelHeader.scss +22 -3
- package/dist/scss/ChannelList.scss +5 -6
- package/dist/scss/ChannelSearch.scss +2 -4
- package/dist/scss/ChatDown.scss +1 -0
- package/dist/scss/DateSeparator.scss +3 -0
- package/dist/scss/EditMessageForm.scss +4 -0
- package/dist/scss/EventComponent.scss +4 -0
- package/dist/scss/Gallery.scss +7 -1
- package/dist/scss/LoadMoreButton.scss +1 -0
- package/dist/scss/Message.scss +78 -2
- package/dist/scss/MessageInput.scss +3 -0
- package/dist/scss/MessageInputFlat.scss +8 -1
- package/dist/scss/MessageList.scss +10 -0
- package/dist/scss/MessageRepliesCountButton.scss +1 -0
- package/dist/scss/MessageTeam.scss +3 -7
- package/dist/scss/Modal.scss +3 -0
- package/dist/scss/ReactionList.scss +18 -18
- package/dist/scss/ReactionSelector.scss +4 -0
- package/dist/scss/SimpleReactionsList.scss +2 -1
- package/dist/scss/Thread.scss +19 -0
- package/dist/scss/TypingIndicator.scss +7 -0
- package/dist/scss/VirtualMessage.scss +8 -7
- package/dist/scss/_base.scss +17 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +9 -28
- package/dist/css/index.js +0 -1
- package/dist/css/index.min.css +0 -1
package/dist/scss/Message.scss
CHANGED
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
&--top,
|
|
57
57
|
&--single {
|
|
58
58
|
margin: 24px 0 0;
|
|
59
|
+
|
|
59
60
|
.str-chat__message {
|
|
60
61
|
&-attachment--img,
|
|
61
62
|
&-attachment-card,
|
|
@@ -81,6 +82,7 @@
|
|
|
81
82
|
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
82
83
|
}
|
|
83
84
|
}
|
|
85
|
+
|
|
84
86
|
&.str-chat__message--has-text.str-chat__message--has-attachment {
|
|
85
87
|
.str-chat__message-attachment--img,
|
|
86
88
|
.str-chat__message-attachment-card {
|
|
@@ -88,10 +90,12 @@
|
|
|
88
90
|
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
89
91
|
}
|
|
90
92
|
}
|
|
93
|
+
|
|
91
94
|
.str-chat__gallery {
|
|
92
95
|
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
93
96
|
var(--border-radius);
|
|
94
97
|
}
|
|
98
|
+
|
|
95
99
|
&.str-chat__message--has-text {
|
|
96
100
|
.str-chat__gallery {
|
|
97
101
|
border-radius: var(--border-radius) var(--border-radius)
|
|
@@ -131,6 +135,7 @@
|
|
|
131
135
|
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
132
136
|
}
|
|
133
137
|
}
|
|
138
|
+
|
|
134
139
|
&.str-chat__message--has-text.str-chat__message--has-attachment {
|
|
135
140
|
.str-chat__message-attachment--img,
|
|
136
141
|
.str-chat__message-attachment-card,
|
|
@@ -144,6 +149,7 @@
|
|
|
144
149
|
|
|
145
150
|
&--bottom {
|
|
146
151
|
margin: 0 0 24px;
|
|
152
|
+
|
|
147
153
|
.str-chat__message {
|
|
148
154
|
&-attachment--img,
|
|
149
155
|
&-attachment-card,
|
|
@@ -170,6 +176,7 @@
|
|
|
170
176
|
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
171
177
|
}
|
|
172
178
|
}
|
|
179
|
+
|
|
173
180
|
&.str-chat__message--has-text.str-chat__message--has-attachment {
|
|
174
181
|
.str-chat__message-attachment--img,
|
|
175
182
|
.str-chat__message-attachment-card,
|
|
@@ -259,11 +266,13 @@
|
|
|
259
266
|
&-inner {
|
|
260
267
|
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
261
268
|
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
269
|
+
|
|
262
270
|
&--has-attachment {
|
|
263
271
|
margin: 0;
|
|
264
272
|
}
|
|
265
273
|
}
|
|
266
274
|
}
|
|
275
|
+
|
|
267
276
|
.str-chat__message-attachment-card {
|
|
268
277
|
margin: 0;
|
|
269
278
|
padding: 0;
|
|
@@ -298,6 +307,7 @@
|
|
|
298
307
|
display: flex;
|
|
299
308
|
align-items: center;
|
|
300
309
|
width: 100%;
|
|
310
|
+
|
|
301
311
|
p {
|
|
302
312
|
margin: 0 24px;
|
|
303
313
|
color: var(--grey);
|
|
@@ -305,18 +315,21 @@
|
|
|
305
315
|
font-weight: var(--font-weight-bold);
|
|
306
316
|
}
|
|
307
317
|
}
|
|
318
|
+
|
|
308
319
|
&__line {
|
|
309
320
|
flex: 1;
|
|
310
321
|
height: 1px;
|
|
311
322
|
width: 100%;
|
|
312
323
|
background-color: var(--overlay);
|
|
313
324
|
}
|
|
325
|
+
|
|
314
326
|
&__date {
|
|
315
327
|
margin-top: 4px;
|
|
316
328
|
text-transform: uppercase;
|
|
317
329
|
color: var(--grey);
|
|
318
330
|
}
|
|
319
331
|
}
|
|
332
|
+
|
|
320
333
|
&-inner {
|
|
321
334
|
position: relative;
|
|
322
335
|
|
|
@@ -324,16 +337,19 @@
|
|
|
324
337
|
margin-right: 88px;
|
|
325
338
|
margin-left: unset;
|
|
326
339
|
}
|
|
340
|
+
|
|
327
341
|
> .str-chat__message-simple__actions {
|
|
328
342
|
position: absolute;
|
|
329
343
|
top: 5px;
|
|
330
344
|
left: calc(100% + 8px);
|
|
331
345
|
}
|
|
332
346
|
}
|
|
347
|
+
|
|
333
348
|
&-attachment-container {
|
|
334
349
|
display: flex;
|
|
335
350
|
flex-direction: column;
|
|
336
351
|
}
|
|
352
|
+
|
|
337
353
|
&-text {
|
|
338
354
|
display: inline-flex;
|
|
339
355
|
justify-content: flex-start;
|
|
@@ -424,6 +440,7 @@
|
|
|
424
440
|
margin: 0;
|
|
425
441
|
white-space: pre-line;
|
|
426
442
|
line-height: 20px;
|
|
443
|
+
|
|
427
444
|
&:not(:first-of-type) {
|
|
428
445
|
margin: var(--sm-m) 0 0;
|
|
429
446
|
}
|
|
@@ -454,6 +471,7 @@
|
|
|
454
471
|
margin-right: unset;
|
|
455
472
|
margin-left: 88px;
|
|
456
473
|
}
|
|
474
|
+
|
|
457
475
|
> .str-chat__message-simple__actions {
|
|
458
476
|
position: absolute;
|
|
459
477
|
top: 5px;
|
|
@@ -470,6 +488,7 @@
|
|
|
470
488
|
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
471
489
|
var(--border-radius);
|
|
472
490
|
margin-right: 0; /* set spacing when unfocused */
|
|
491
|
+
|
|
473
492
|
&--focused {
|
|
474
493
|
background: var(--primary-color);
|
|
475
494
|
border: 1px solid var(--primary-color);
|
|
@@ -540,12 +559,14 @@
|
|
|
540
559
|
flex-direction: column;
|
|
541
560
|
align-items: flex-start;
|
|
542
561
|
}
|
|
562
|
+
|
|
543
563
|
.messaging {
|
|
544
564
|
&.str-chat {
|
|
545
565
|
.str-chat {
|
|
546
566
|
&__message,
|
|
547
567
|
&__message--me {
|
|
548
568
|
margin: calc(var(--xxs-m) / 2) 0;
|
|
569
|
+
|
|
549
570
|
&--with-reactions {
|
|
550
571
|
margin-top: var(--lg-m);
|
|
551
572
|
}
|
|
@@ -553,27 +574,32 @@
|
|
|
553
574
|
|
|
554
575
|
&__message-attachment--image {
|
|
555
576
|
margin: calc(var(--xxs-m) / 2) 0;
|
|
556
|
-
|
|
557
577
|
max-width: 480px;
|
|
558
578
|
}
|
|
579
|
+
|
|
559
580
|
&__message-attachment--card {
|
|
560
581
|
margin: calc(var(--xxs-m) / 2) 0;
|
|
561
582
|
line-height: normal;
|
|
562
583
|
}
|
|
584
|
+
|
|
563
585
|
&__message-attachment-card {
|
|
564
586
|
margin: calc(var(--xxs-m) / 2) auto;
|
|
565
587
|
line-height: normal;
|
|
566
588
|
background: var(--grey-gainsboro);
|
|
589
|
+
|
|
567
590
|
&--title {
|
|
568
591
|
color: var(--primary-color);
|
|
569
592
|
}
|
|
593
|
+
|
|
570
594
|
&--text {
|
|
571
595
|
display: none;
|
|
572
596
|
}
|
|
597
|
+
|
|
573
598
|
&--url {
|
|
574
599
|
text-transform: lowercase;
|
|
575
600
|
}
|
|
576
601
|
}
|
|
602
|
+
|
|
577
603
|
&__message--deleted {
|
|
578
604
|
margin: 0 var(--xl-m);
|
|
579
605
|
}
|
|
@@ -597,6 +623,7 @@
|
|
|
597
623
|
margin: 0 0 0 var(--xl-m);
|
|
598
624
|
flex-direction: column;
|
|
599
625
|
align-items: flex-start;
|
|
626
|
+
|
|
600
627
|
&-inner {
|
|
601
628
|
background: var(--grey-whisper);
|
|
602
629
|
padding: var(--xs-p) var(--sm-p);
|
|
@@ -610,6 +637,7 @@
|
|
|
610
637
|
&.str-chat__message--deleted {
|
|
611
638
|
margin: 0 var(--xl-m) 0 0;
|
|
612
639
|
align-items: flex-end;
|
|
640
|
+
|
|
613
641
|
&-inner {
|
|
614
642
|
background: var(--white-smoke);
|
|
615
643
|
padding: var(--xs-p) var(--sm-p);
|
|
@@ -649,6 +677,7 @@
|
|
|
649
677
|
.str-chat {
|
|
650
678
|
&__message-simple {
|
|
651
679
|
font-family: var(--second-font);
|
|
680
|
+
|
|
652
681
|
&__actions {
|
|
653
682
|
display: flex;
|
|
654
683
|
|
|
@@ -658,19 +687,23 @@
|
|
|
658
687
|
align-items: center;
|
|
659
688
|
height: 10px;
|
|
660
689
|
cursor: pointer;
|
|
690
|
+
|
|
661
691
|
svg {
|
|
662
692
|
fill: var(--black);
|
|
663
693
|
opacity: 0.5;
|
|
664
694
|
}
|
|
695
|
+
|
|
665
696
|
&:hover {
|
|
666
697
|
svg {
|
|
667
698
|
opacity: 1;
|
|
668
699
|
}
|
|
669
700
|
}
|
|
701
|
+
|
|
670
702
|
&--thread,
|
|
671
703
|
&--reactions {
|
|
672
704
|
display: none;
|
|
673
705
|
}
|
|
706
|
+
|
|
674
707
|
&--options {
|
|
675
708
|
position: relative;
|
|
676
709
|
display: none;
|
|
@@ -682,6 +715,7 @@
|
|
|
682
715
|
.str-chat__message-simple__actions__action--thread {
|
|
683
716
|
display: flex;
|
|
684
717
|
}
|
|
718
|
+
|
|
685
719
|
.str-chat__message-simple__actions__action--reactions {
|
|
686
720
|
display: flex;
|
|
687
721
|
}
|
|
@@ -701,6 +735,7 @@
|
|
|
701
735
|
|
|
702
736
|
&.str-chat__message-simple-text-inner--is-emoji {
|
|
703
737
|
background: transparent;
|
|
738
|
+
|
|
704
739
|
p {
|
|
705
740
|
line-height: 48px;
|
|
706
741
|
}
|
|
@@ -709,11 +744,13 @@
|
|
|
709
744
|
p {
|
|
710
745
|
text-align: left;
|
|
711
746
|
}
|
|
747
|
+
|
|
712
748
|
a {
|
|
713
749
|
color: var(--primary-color);
|
|
714
750
|
font-weight: var(--font-weight-bold);
|
|
715
751
|
text-decoration: none;
|
|
716
752
|
}
|
|
753
|
+
|
|
717
754
|
blockquote {
|
|
718
755
|
margin: 0 0 0 var(--xxs-m);
|
|
719
756
|
font-style: italic;
|
|
@@ -736,9 +773,11 @@
|
|
|
736
773
|
.str-chat__message-simple-reply-button {
|
|
737
774
|
display: flex;
|
|
738
775
|
justify-content: flex-end;
|
|
776
|
+
|
|
739
777
|
.str-chat__message-replies-count-button {
|
|
740
778
|
display: flex;
|
|
741
779
|
flex-direction: row-reverse;
|
|
780
|
+
|
|
742
781
|
svg {
|
|
743
782
|
transform: scaleX(-1);
|
|
744
783
|
margin-left: var(--xxs-m);
|
|
@@ -762,6 +801,7 @@
|
|
|
762
801
|
line-height: 32px;
|
|
763
802
|
}
|
|
764
803
|
}
|
|
804
|
+
|
|
765
805
|
.str-chat__message-simple__actions {
|
|
766
806
|
order: -1;
|
|
767
807
|
}
|
|
@@ -771,9 +811,11 @@
|
|
|
771
811
|
.str-chat__message-simple__actions__action--options {
|
|
772
812
|
display: flex;
|
|
773
813
|
}
|
|
814
|
+
|
|
774
815
|
.str-chat__message-simple__actions__action--reactions {
|
|
775
816
|
display: flex;
|
|
776
817
|
}
|
|
818
|
+
|
|
777
819
|
.str-chat__message-simple__actions__action--thread {
|
|
778
820
|
display: flex;
|
|
779
821
|
}
|
|
@@ -782,9 +824,11 @@
|
|
|
782
824
|
.str-chat__message-simple__actions__action--options {
|
|
783
825
|
display: none;
|
|
784
826
|
}
|
|
827
|
+
|
|
785
828
|
.str-chat__message-simple__actions__action--reactions {
|
|
786
829
|
display: none;
|
|
787
830
|
}
|
|
831
|
+
|
|
788
832
|
.str-chat__message-simple__actions__action--thread {
|
|
789
833
|
display: none;
|
|
790
834
|
}
|
|
@@ -801,7 +845,7 @@
|
|
|
801
845
|
}
|
|
802
846
|
|
|
803
847
|
.str-chat__message-simple-status {
|
|
804
|
-
margin: var(--xs-m)
|
|
848
|
+
margin: var(--xs-m) 0 var(--xs-m) var(--xs-m);
|
|
805
849
|
order: 3;
|
|
806
850
|
position: absolute;
|
|
807
851
|
left: 100%;
|
|
@@ -811,6 +855,7 @@
|
|
|
811
855
|
justify-content: flex-end;
|
|
812
856
|
align-items: center;
|
|
813
857
|
z-index: 1;
|
|
858
|
+
|
|
814
859
|
&-number {
|
|
815
860
|
font-size: var(--xs-font);
|
|
816
861
|
margin-left: 4px;
|
|
@@ -861,23 +906,28 @@
|
|
|
861
906
|
display: none;
|
|
862
907
|
}
|
|
863
908
|
}
|
|
909
|
+
|
|
864
910
|
.str-chat__message-attachment--file {
|
|
865
911
|
margin: 0;
|
|
866
912
|
background: var(--white);
|
|
867
913
|
border-color: transparent;
|
|
868
914
|
border: 1px solid var(--grey-gainsboro);
|
|
869
915
|
border-radius: var(--border-radius-md);
|
|
916
|
+
|
|
870
917
|
.str-chat__message-attachment-file--item {
|
|
871
918
|
border-color: transparent;
|
|
872
919
|
padding: 0 var(--xs-p);
|
|
873
920
|
}
|
|
921
|
+
|
|
874
922
|
&:first-of-type {
|
|
875
923
|
border-radius: var(--border-radius) var(--border-radius) 0 0;
|
|
876
924
|
border-bottom: transparent;
|
|
877
925
|
}
|
|
926
|
+
|
|
878
927
|
&:last-of-type {
|
|
879
928
|
border-top-color: transparent;
|
|
880
929
|
border-radius: 0 0 var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
930
|
+
|
|
881
931
|
&:first-of-type {
|
|
882
932
|
border-bottom: 1px solid var(--grey-gainsboro);
|
|
883
933
|
border-top: 1px solid var(--grey-gainsboro);
|
|
@@ -886,16 +936,20 @@
|
|
|
886
936
|
}
|
|
887
937
|
}
|
|
888
938
|
}
|
|
939
|
+
|
|
889
940
|
.str-chat__message-attachment-file--item {
|
|
890
941
|
border-radius: 0;
|
|
891
942
|
}
|
|
943
|
+
|
|
892
944
|
&--me {
|
|
893
945
|
.str-chat__message-attachment-card {
|
|
894
946
|
border-radius: var(--border-radius) var(--border-radius-sm) var(--border-radius-sm)
|
|
895
947
|
var(--border-radius-sm);
|
|
896
948
|
}
|
|
949
|
+
|
|
897
950
|
.str-chat__message-attachment--file {
|
|
898
951
|
background: var(--grey-gainsboro);
|
|
952
|
+
|
|
899
953
|
&:last-of-type {
|
|
900
954
|
border-radius: 0 0 calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
901
955
|
|
|
@@ -913,6 +967,7 @@
|
|
|
913
967
|
&__actions {
|
|
914
968
|
width: 30px;
|
|
915
969
|
}
|
|
970
|
+
|
|
916
971
|
&__actions__action--options {
|
|
917
972
|
.str-chat__message-actions-box {
|
|
918
973
|
right: unset;
|
|
@@ -938,6 +993,7 @@
|
|
|
938
993
|
.str-chat__message-simple-text-inner {
|
|
939
994
|
max-width: 218px;
|
|
940
995
|
}
|
|
996
|
+
|
|
941
997
|
.str-chat__message-simple-status {
|
|
942
998
|
left: unset;
|
|
943
999
|
right: 8px;
|
|
@@ -950,15 +1006,18 @@
|
|
|
950
1006
|
&-text-inner {
|
|
951
1007
|
background: var(--white-smoke);
|
|
952
1008
|
color: var(--white);
|
|
1009
|
+
|
|
953
1010
|
&--is-emoji {
|
|
954
1011
|
background: transparent;
|
|
955
1012
|
}
|
|
956
1013
|
}
|
|
1014
|
+
|
|
957
1015
|
&__actions {
|
|
958
1016
|
svg {
|
|
959
1017
|
fill: var(--white);
|
|
960
1018
|
}
|
|
961
1019
|
}
|
|
1020
|
+
|
|
962
1021
|
&-data {
|
|
963
1022
|
color: var(--white);
|
|
964
1023
|
opacity: 0.5;
|
|
@@ -966,9 +1025,11 @@
|
|
|
966
1025
|
|
|
967
1026
|
.str-chat__message-attachment-card {
|
|
968
1027
|
background: transparent;
|
|
1028
|
+
|
|
969
1029
|
&--content {
|
|
970
1030
|
background: var(--white-smoke);
|
|
971
1031
|
}
|
|
1032
|
+
|
|
972
1033
|
&--url {
|
|
973
1034
|
color: var(--grey-gainsboro);
|
|
974
1035
|
}
|
|
@@ -982,6 +1043,7 @@
|
|
|
982
1043
|
span {
|
|
983
1044
|
color: var(--white);
|
|
984
1045
|
}
|
|
1046
|
+
|
|
985
1047
|
span {
|
|
986
1048
|
opacity: 0.5;
|
|
987
1049
|
}
|
|
@@ -997,15 +1059,18 @@
|
|
|
997
1059
|
.str-chat__message-simple {
|
|
998
1060
|
&-text-inner {
|
|
999
1061
|
background: var(--black);
|
|
1062
|
+
|
|
1000
1063
|
&--is-emoji {
|
|
1001
1064
|
background: transparent;
|
|
1002
1065
|
}
|
|
1003
1066
|
}
|
|
1067
|
+
|
|
1004
1068
|
.str-chat__message-attachment-card {
|
|
1005
1069
|
&--content {
|
|
1006
1070
|
background: var(--black);
|
|
1007
1071
|
}
|
|
1008
1072
|
}
|
|
1073
|
+
|
|
1009
1074
|
.str-chat__message-attachment--file {
|
|
1010
1075
|
background: var(--overlay);
|
|
1011
1076
|
}
|
|
@@ -1019,6 +1084,7 @@
|
|
|
1019
1084
|
background: var(--grey);
|
|
1020
1085
|
box-shadow: 0 0 2px 0 var(--overlay), 0 1px 0 0 var(--border), 0 1px 8px 0 var(--border);
|
|
1021
1086
|
}
|
|
1087
|
+
|
|
1022
1088
|
.str-chat__message {
|
|
1023
1089
|
&--error,
|
|
1024
1090
|
&--failed {
|
|
@@ -1035,6 +1101,7 @@
|
|
|
1035
1101
|
.str-chat__message-actions-box {
|
|
1036
1102
|
left: 100%;
|
|
1037
1103
|
right: unset;
|
|
1104
|
+
|
|
1038
1105
|
&--reverse {
|
|
1039
1106
|
right: 100%;
|
|
1040
1107
|
left: unset;
|
|
@@ -1042,11 +1109,13 @@
|
|
|
1042
1109
|
var(--border-radius);
|
|
1043
1110
|
}
|
|
1044
1111
|
}
|
|
1112
|
+
|
|
1045
1113
|
.str-chat__message-actions-box--mine {
|
|
1046
1114
|
right: 100%;
|
|
1047
1115
|
left: unset;
|
|
1048
1116
|
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
1049
1117
|
var(--border-radius);
|
|
1118
|
+
|
|
1050
1119
|
&.str-chat__message-actions-box--reverse {
|
|
1051
1120
|
left: 100%;
|
|
1052
1121
|
right: unset;
|
|
@@ -1055,6 +1124,7 @@
|
|
|
1055
1124
|
}
|
|
1056
1125
|
}
|
|
1057
1126
|
}
|
|
1127
|
+
|
|
1058
1128
|
a[href^='mailto:'] {
|
|
1059
1129
|
-webkit-hyphens: none;
|
|
1060
1130
|
-moz-hyphens: none;
|
|
@@ -1073,6 +1143,7 @@
|
|
|
1073
1143
|
max-width: 274px;
|
|
1074
1144
|
}
|
|
1075
1145
|
}
|
|
1146
|
+
|
|
1076
1147
|
@media only screen and (device-width: 375px) and (-webkit-device-pixel-ratio: 3) {
|
|
1077
1148
|
.str-chat__message .str-chat__message-attachment--img {
|
|
1078
1149
|
max-width: 240px;
|
|
@@ -1112,6 +1183,7 @@
|
|
|
1112
1183
|
.mml-align-right .mml-carousel {
|
|
1113
1184
|
margin-left: auto;
|
|
1114
1185
|
}
|
|
1186
|
+
|
|
1115
1187
|
.mml-align-left .mml-btnlist--floating,
|
|
1116
1188
|
.mml-align-left .mml-carousel {
|
|
1117
1189
|
margin-right: auto;
|
|
@@ -1121,6 +1193,7 @@
|
|
|
1121
1193
|
.mml-align-left .mml-carousel {
|
|
1122
1194
|
margin-left: -10px;
|
|
1123
1195
|
}
|
|
1196
|
+
|
|
1124
1197
|
.mml-align-right .mml-carousel {
|
|
1125
1198
|
margin-right: -10px;
|
|
1126
1199
|
}
|
|
@@ -1134,6 +1207,7 @@
|
|
|
1134
1207
|
.mml-align-left .mml-carousel {
|
|
1135
1208
|
margin-left: -10px;
|
|
1136
1209
|
}
|
|
1210
|
+
|
|
1137
1211
|
.mml-align-right .mml-carousel {
|
|
1138
1212
|
margin-right: -10px;
|
|
1139
1213
|
}
|
|
@@ -1145,9 +1219,11 @@
|
|
|
1145
1219
|
.str-chat__message-simple__actions__action--options {
|
|
1146
1220
|
display: flex;
|
|
1147
1221
|
}
|
|
1222
|
+
|
|
1148
1223
|
.str-chat__message-simple__actions__action--reactions {
|
|
1149
1224
|
display: flex;
|
|
1150
1225
|
}
|
|
1226
|
+
|
|
1151
1227
|
.str-chat__message-simple__actions__action--thread {
|
|
1152
1228
|
display: flex;
|
|
1153
1229
|
}
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
flex-wrap: wrap;
|
|
24
24
|
flex: 1 0;
|
|
25
25
|
position: relative;
|
|
26
|
+
|
|
26
27
|
.str-chat__textarea {
|
|
27
28
|
textarea {
|
|
28
29
|
padding-right: 72px;
|
|
@@ -80,6 +81,7 @@
|
|
|
80
81
|
.str-chat__textarea {
|
|
81
82
|
height: auto;
|
|
82
83
|
flex: 1;
|
|
84
|
+
|
|
83
85
|
textarea {
|
|
84
86
|
width: 100%;
|
|
85
87
|
outline: none;
|
|
@@ -254,6 +256,7 @@
|
|
|
254
256
|
color: var(--white);
|
|
255
257
|
font-weight: 800;
|
|
256
258
|
font-size: var(--sm-font);
|
|
259
|
+
|
|
257
260
|
svg {
|
|
258
261
|
display: none;
|
|
259
262
|
}
|
|
@@ -102,6 +102,7 @@
|
|
|
102
102
|
line-height: 17px;
|
|
103
103
|
border: none;
|
|
104
104
|
margin: 0;
|
|
105
|
+
|
|
105
106
|
&:focus {
|
|
106
107
|
border: none;
|
|
107
108
|
color: var(--black);
|
|
@@ -119,9 +120,11 @@
|
|
|
119
120
|
position: absolute;
|
|
120
121
|
top: calc(100% - 45px);
|
|
121
122
|
left: 25px;
|
|
123
|
+
|
|
122
124
|
svg {
|
|
123
125
|
fill: var(--black);
|
|
124
126
|
opacity: 0.5;
|
|
127
|
+
|
|
125
128
|
&:hover {
|
|
126
129
|
opacity: 1;
|
|
127
130
|
}
|
|
@@ -151,7 +154,8 @@
|
|
|
151
154
|
bottom: 50px;
|
|
152
155
|
left: 32px;
|
|
153
156
|
right: unset;
|
|
154
|
-
|
|
157
|
+
|
|
158
|
+
&::after {
|
|
155
159
|
left: 5px;
|
|
156
160
|
right: unset;
|
|
157
161
|
}
|
|
@@ -176,6 +180,7 @@
|
|
|
176
180
|
svg {
|
|
177
181
|
fill: var(--black);
|
|
178
182
|
opacity: 0.5;
|
|
183
|
+
|
|
179
184
|
&:hover {
|
|
180
185
|
opacity: 1;
|
|
181
186
|
}
|
|
@@ -198,6 +203,7 @@
|
|
|
198
203
|
.rfu-thumbnail__overlay,
|
|
199
204
|
.rfu-icon-button {
|
|
200
205
|
padding: 0;
|
|
206
|
+
|
|
201
207
|
svg {
|
|
202
208
|
opacity: 0.9;
|
|
203
209
|
height: 25px;
|
|
@@ -224,6 +230,7 @@
|
|
|
224
230
|
.dark.str-chat {
|
|
225
231
|
.str-chat__input-flat {
|
|
226
232
|
background: var(--white5);
|
|
233
|
+
|
|
227
234
|
textarea {
|
|
228
235
|
background: var(--white5);
|
|
229
236
|
border-radius: var(--border-radius-md);
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
padding: var(--sm-p) 0 0 0;
|
|
21
21
|
overflow: visible;
|
|
22
22
|
}
|
|
23
|
+
|
|
23
24
|
&__center {
|
|
24
25
|
width: 100%;
|
|
25
26
|
display: flex;
|
|
@@ -79,9 +80,11 @@
|
|
|
79
80
|
&__list {
|
|
80
81
|
padding: 0 var(--xl-p) 0;
|
|
81
82
|
background: var(--white);
|
|
83
|
+
|
|
82
84
|
.str-chat__reverse-infinite-scroll {
|
|
83
85
|
padding-top: 56px;
|
|
84
86
|
}
|
|
87
|
+
|
|
85
88
|
&-notifications {
|
|
86
89
|
background: var(--white);
|
|
87
90
|
}
|
|
@@ -91,18 +94,22 @@
|
|
|
91
94
|
.str-chat {
|
|
92
95
|
&__list {
|
|
93
96
|
padding: 0 var(--xs-p) 0;
|
|
97
|
+
|
|
94
98
|
.str-chat__reverse-infinite-scroll {
|
|
95
99
|
padding-top: 56px;
|
|
96
100
|
}
|
|
101
|
+
|
|
97
102
|
&-notifications {
|
|
98
103
|
padding: 0 var(--xs-p);
|
|
99
104
|
}
|
|
100
105
|
}
|
|
101
106
|
}
|
|
102
107
|
}
|
|
108
|
+
|
|
103
109
|
&.dark {
|
|
104
110
|
.str-chat__list {
|
|
105
111
|
background: var(--white5);
|
|
112
|
+
|
|
106
113
|
&-notifications {
|
|
107
114
|
background: var(--white5);
|
|
108
115
|
}
|
|
@@ -116,6 +123,7 @@
|
|
|
116
123
|
.str-chat {
|
|
117
124
|
&__list {
|
|
118
125
|
padding: 0 var(--xs-p);
|
|
126
|
+
|
|
119
127
|
.str-chat__reverse-infinite-scroll {
|
|
120
128
|
padding-top: 56px;
|
|
121
129
|
}
|
|
@@ -129,9 +137,11 @@
|
|
|
129
137
|
.str-chat {
|
|
130
138
|
&__list {
|
|
131
139
|
padding: 0 var(--md-p) 0;
|
|
140
|
+
|
|
132
141
|
.str-chat__reverse-infinite-scroll {
|
|
133
142
|
padding-top: 72px;
|
|
134
143
|
}
|
|
144
|
+
|
|
135
145
|
&-notifications {
|
|
136
146
|
padding-left: var(--md-p);
|
|
137
147
|
padding-right: var(--md-p);
|
|
@@ -19,21 +19,17 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
&-actions {
|
|
22
|
-
$actionsBorderColor: #e0e0e0;
|
|
23
|
-
$actionsHeight: 24px;
|
|
24
|
-
$actionsOffset: $actionsHeight / 2;
|
|
25
|
-
|
|
26
22
|
position: absolute;
|
|
27
|
-
top:
|
|
23
|
+
top: -12px;
|
|
28
24
|
right: 0;
|
|
29
25
|
display: flex;
|
|
30
26
|
align-items: center;
|
|
31
27
|
justify-content: space-between;
|
|
32
28
|
width: 75px;
|
|
33
|
-
height:
|
|
29
|
+
height: 24px;
|
|
34
30
|
border-radius: 100px;
|
|
35
31
|
background: var(--white);
|
|
36
|
-
border: 1px solid
|
|
32
|
+
border: 1px solid #e0e0e0;
|
|
37
33
|
box-shadow: 0 2px 1px 0 rgba(0, 0, 0, 0.07);
|
|
38
34
|
z-index: 10;
|
|
39
35
|
visibility: hidden;
|
package/dist/scss/Modal.scss
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
display: none;
|
|
11
11
|
align-items: center;
|
|
12
12
|
justify-content: center;
|
|
13
|
+
|
|
13
14
|
&--open {
|
|
14
15
|
display: flex;
|
|
15
16
|
}
|
|
@@ -32,12 +33,14 @@
|
|
|
32
33
|
cursor: pointer;
|
|
33
34
|
display: flex;
|
|
34
35
|
align-items: center;
|
|
36
|
+
|
|
35
37
|
svg {
|
|
36
38
|
position: relative;
|
|
37
39
|
top: 1px;
|
|
38
40
|
margin-left: var(--xs-m);
|
|
39
41
|
fill: var(--white);
|
|
40
42
|
}
|
|
43
|
+
|
|
41
44
|
&:hover {
|
|
42
45
|
opacity: 0.79;
|
|
43
46
|
}
|