@linktr.ee/messaging-react 3.12.6 → 3.12.7
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 +13 -0
package/package.json
CHANGED
package/src/styles.css
CHANGED
|
@@ -345,6 +345,14 @@
|
|
|
345
345
|
'. metadata';
|
|
346
346
|
grid-template-columns: 28px 1fr;
|
|
347
347
|
justify-items: flex-start;
|
|
348
|
+
|
|
349
|
+
/* Reserve ~1/6 of the channel width on the open side of text-only bubbles
|
|
350
|
+
(MES-1278). Scoped to messages with a single `.str-chat__message-bubble`
|
|
351
|
+
that carries `.str-chat__message-text` — other media still use fixed
|
|
352
|
+
widths and need to go fluid before the same spacing can apply generally. */
|
|
353
|
+
&:has(.str-chat__message-bubble:only-child .str-chat__message-text) {
|
|
354
|
+
padding-inline-end: calc(100% / 6);
|
|
355
|
+
}
|
|
348
356
|
}
|
|
349
357
|
|
|
350
358
|
.str-chat__message.str-chat__message--other {
|
|
@@ -366,6 +374,11 @@
|
|
|
366
374
|
'custom-metadata'
|
|
367
375
|
'metadata';
|
|
368
376
|
justify-items: end;
|
|
377
|
+
|
|
378
|
+
/* Same open-side reserve as --other (see above). */
|
|
379
|
+
&:has(.str-chat__message-bubble:only-child .str-chat__message-text) {
|
|
380
|
+
padding-inline-start: calc(100% / 6);
|
|
381
|
+
}
|
|
369
382
|
}
|
|
370
383
|
|
|
371
384
|
/* Avatar: proper grid item aligned to bottom of its row */
|