@linktr.ee/messaging-react 3.1.3-rc-1780618254 → 3.1.3
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/dist/assets/index.css +1 -1
- package/package.json +1 -1
- package/src/styles.css +53 -52
package/package.json
CHANGED
package/src/styles.css
CHANGED
|
@@ -1,59 +1,18 @@
|
|
|
1
|
-
@layer stream, stream-overrides;
|
|
2
|
-
|
|
3
1
|
/* Stream Chat base styles */
|
|
4
|
-
@import 'stream-chat-react/dist/css/v2/index.css'
|
|
2
|
+
@import 'stream-chat-react/dist/css/v2/index.css';
|
|
5
3
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/* Inherit the host's font instead of stream-chat-react's hardcoded system stack.
|
|
4
|
+
.str-chat {
|
|
5
|
+
/* Inherit the host's font instead of stream-chat-react's hardcoded system stack.
|
|
9
6
|
In admin (federation host) this resolves to Link Sans; on linktr.ee profile
|
|
10
7
|
pages it resolves to the creator's profile font. */
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
--str-chat__message-bubble-border-radius: 1.5rem;
|
|
14
|
-
--str-chat__message-bubble-background-color: #f1f0ee;
|
|
15
|
-
--str-chat__message-bubble-color: #181818;
|
|
16
|
-
|
|
17
|
-
--str-chat__own-message-bubble-background-color: #121110;
|
|
18
|
-
--str-chat__own-message-bubble-color: #fff;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.str-chat__message.str-chat__message--other {
|
|
22
|
-
column-gap: 0.25rem;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.str-chat__message-text {
|
|
26
|
-
padding: 0.75rem 1rem;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.str-chat__message-bubble {
|
|
30
|
-
font-size: 0.875rem;
|
|
31
|
-
line-height: 1.25rem;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.str-chat__li--single,
|
|
35
|
-
.str-chat__li--bottom {
|
|
36
|
-
margin-block-end: 0.875rem;
|
|
37
|
-
|
|
38
|
-
.str-chat__message--other .str-chat__message-bubble {
|
|
39
|
-
border-end-start-radius: var(--str-chat__message-bubble-border-radius);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.str-chat__message--me .str-chat__message-bubble {
|
|
43
|
-
border-end-end-radius: var(--str-chat__message-bubble-border-radius);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
8
|
+
--str-chat__font-family: inherit;
|
|
46
9
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
10
|
+
--str-chat__message-bubble-border-radius: 1.5rem;
|
|
11
|
+
--str-chat__message-bubble-background-color: #f1f0ee;
|
|
12
|
+
--str-chat__message-bubble-color: #181818;
|
|
51
13
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
font-size: 0.75rem;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
14
|
+
--str-chat__own-message-bubble-background-color: #121110;
|
|
15
|
+
--str-chat__own-message-bubble-color: #fff;
|
|
57
16
|
}
|
|
58
17
|
|
|
59
18
|
/* Dialog component styles - used by messaging components */
|
|
@@ -346,11 +305,22 @@
|
|
|
346
305
|
}
|
|
347
306
|
}
|
|
348
307
|
|
|
349
|
-
.str-chat__unread-messages-separator
|
|
350
|
-
.str-chat__date-separator-line {
|
|
308
|
+
.str-chat__unread-messages-separator {
|
|
351
309
|
background-color: transparent;
|
|
352
310
|
}
|
|
353
311
|
|
|
312
|
+
.str-chat__date-separator-line {
|
|
313
|
+
display: none;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.str-chat__date-separator {
|
|
317
|
+
font-size: 0.75rem;
|
|
318
|
+
|
|
319
|
+
.str-chat__date-separator-date {
|
|
320
|
+
margin: 0 auto;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
354
324
|
.str-chat__list {
|
|
355
325
|
background: transparent;
|
|
356
326
|
}
|
|
@@ -377,6 +347,10 @@
|
|
|
377
347
|
justify-items: flex-start;
|
|
378
348
|
}
|
|
379
349
|
|
|
350
|
+
.str-chat__message.str-chat__message--other {
|
|
351
|
+
column-gap: 0.25rem;
|
|
352
|
+
}
|
|
353
|
+
|
|
380
354
|
/* Outer grid for me (outgoing) messages — add footer row after message */
|
|
381
355
|
.str-chat__li .str-chat__message--me {
|
|
382
356
|
grid-template-areas:
|
|
@@ -576,6 +550,18 @@
|
|
|
576
550
|
transition-delay: 300ms;
|
|
577
551
|
}
|
|
578
552
|
|
|
553
|
+
.str-chat__message
|
|
554
|
+
.str-chat__message-inner
|
|
555
|
+
.str-chat__message-bubble
|
|
556
|
+
.str-chat__message-text {
|
|
557
|
+
padding: 0.75rem 1rem;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.str-chat__message .str-chat__message-bubble {
|
|
561
|
+
font-size: 0.875rem;
|
|
562
|
+
line-height: 1.25rem;
|
|
563
|
+
}
|
|
564
|
+
|
|
579
565
|
/* Chatbot reply markdown — restore semantics that consumer Tailwind preflight
|
|
580
566
|
(or other resets) strip from the body of `.str-chat__message-text-inner`. */
|
|
581
567
|
.str-chat__message-text-inner :where(h1, h2, h3, h4, h5, h6) {
|
|
@@ -680,6 +666,21 @@
|
|
|
680
666
|
margin-bottom: 0;
|
|
681
667
|
}
|
|
682
668
|
|
|
669
|
+
.str-chat__li--single,
|
|
670
|
+
.str-chat__li--bottom {
|
|
671
|
+
.str-chat__message {
|
|
672
|
+
margin-block-end: 0.875rem;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.str-chat__message--other .str-chat__message-bubble {
|
|
676
|
+
border-end-start-radius: var(--str-chat__message-bubble-border-radius);
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
.str-chat__message--me .str-chat__message-bubble {
|
|
680
|
+
border-end-end-radius: var(--str-chat__message-bubble-border-radius);
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
|
|
683
684
|
/* Locked attachment wrapper: stack card + text bubble in the correct direction */
|
|
684
685
|
.str-chat__li .str-chat__message--me .str-chat__message-bubble-wrapper {
|
|
685
686
|
display: flex;
|