@linktr.ee/messaging-react 3.12.5 → 3.12.6-rc-1784195094
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 +2 -2
- package/src/styles.css +8 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linktr.ee/messaging-react",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.6-rc-1784195094",
|
|
4
4
|
"description": "React messaging components built on messaging-core for web applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@linktr.ee/component-library": "11.8.6",
|
|
53
|
-
"@linktr.ee/messaging-core": "
|
|
53
|
+
"@linktr.ee/messaging-core": "2.3.0-rc-1784195094",
|
|
54
54
|
"@phosphor-icons/react": "^2.1.10"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
package/src/styles.css
CHANGED
|
@@ -346,14 +346,12 @@
|
|
|
346
346
|
grid-template-columns: 28px 1fr;
|
|
347
347
|
justify-items: flex-start;
|
|
348
348
|
|
|
349
|
-
/* Reserve ~1/6 of the channel width on the open side of text bubbles
|
|
350
|
-
(MES-1278).
|
|
351
|
-
|
|
352
|
-
the same spacing can
|
|
353
|
-
.str-chat__message-bubble:
|
|
354
|
-
|
|
355
|
-
(100vw - 2 * min(var(--str-chat__spacing-10), 4%)) / 6
|
|
356
|
-
);
|
|
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);
|
|
357
355
|
}
|
|
358
356
|
}
|
|
359
357
|
|
|
@@ -378,10 +376,8 @@
|
|
|
378
376
|
justify-items: end;
|
|
379
377
|
|
|
380
378
|
/* Same open-side reserve as --other (see above). */
|
|
381
|
-
.str-chat__message-bubble:
|
|
382
|
-
|
|
383
|
-
(100vw - 2 * min(var(--str-chat__spacing-10), 4%)) / 6
|
|
384
|
-
);
|
|
379
|
+
&:has(.str-chat__message-bubble:only-child .str-chat__message-text) {
|
|
380
|
+
padding-inline-start: calc(100% / 6);
|
|
385
381
|
}
|
|
386
382
|
}
|
|
387
383
|
|