@pushwoosh/websdk-common 6.23.0 → 6.23.1
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/inbox/InboxCellPreview.js +23 -9
- package/package.json +1 -1
|
@@ -35,6 +35,16 @@ const TEXT = {
|
|
|
35
35
|
fontSize: 14,
|
|
36
36
|
lineHeight: 20 / 14,
|
|
37
37
|
fontWeight: 500
|
|
38
|
+
},
|
|
39
|
+
caption: {
|
|
40
|
+
fontSize: 10,
|
|
41
|
+
lineHeight: 13 / 10,
|
|
42
|
+
fontWeight: 400
|
|
43
|
+
},
|
|
44
|
+
body: {
|
|
45
|
+
fontSize: 13,
|
|
46
|
+
lineHeight: 18 / 13,
|
|
47
|
+
fontWeight: 400
|
|
38
48
|
}
|
|
39
49
|
};
|
|
40
50
|
const ELLIPSIS = {
|
|
@@ -245,6 +255,7 @@ function IOSCell(props) {
|
|
|
245
255
|
dateLabel,
|
|
246
256
|
unread
|
|
247
257
|
} = props;
|
|
258
|
+
const isClassic = layout === 'classic';
|
|
248
259
|
const texts = _jsxs("div", {
|
|
249
260
|
style: {
|
|
250
261
|
display: 'flex',
|
|
@@ -256,37 +267,40 @@ function IOSCell(props) {
|
|
|
256
267
|
children: [_jsxs("div", {
|
|
257
268
|
style: {
|
|
258
269
|
display: 'flex',
|
|
259
|
-
alignItems: '
|
|
270
|
+
alignItems: 'flex-start',
|
|
260
271
|
gap: 4
|
|
261
272
|
},
|
|
262
273
|
children: [_jsx("div", {
|
|
263
274
|
style: {
|
|
264
|
-
...
|
|
265
|
-
|
|
275
|
+
...(isClassic ? {
|
|
276
|
+
...TEXT.body,
|
|
277
|
+
fontWeight: 500
|
|
278
|
+
} : TEXT.h5),
|
|
266
279
|
flex: 1,
|
|
267
280
|
minWidth: 0,
|
|
281
|
+
overflowWrap: 'anywhere',
|
|
268
282
|
color: MAIN
|
|
269
283
|
},
|
|
270
284
|
children: title
|
|
271
285
|
}), _jsx("div", {
|
|
272
286
|
style: {
|
|
273
|
-
...TEXT.
|
|
287
|
+
...TEXT.caption,
|
|
274
288
|
flexShrink: 0,
|
|
275
289
|
whiteSpace: 'nowrap',
|
|
276
|
-
color:
|
|
290
|
+
color: PHANTOM
|
|
277
291
|
},
|
|
278
292
|
children: dateLabel
|
|
279
293
|
})]
|
|
280
294
|
}), !!body && _jsx("div", {
|
|
281
295
|
style: {
|
|
282
|
-
...TEXT.footnote,
|
|
283
|
-
|
|
284
|
-
color:
|
|
296
|
+
...(isClassic ? TEXT.body : TEXT.footnote),
|
|
297
|
+
overflowWrap: 'anywhere',
|
|
298
|
+
color: isClassic ? '#333333' : PHANTOM
|
|
285
299
|
},
|
|
286
300
|
children: body
|
|
287
301
|
})]
|
|
288
302
|
});
|
|
289
|
-
if (
|
|
303
|
+
if (isClassic) {
|
|
290
304
|
return _jsxs("div", {
|
|
291
305
|
style: {
|
|
292
306
|
display: 'flex',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pushwoosh/websdk-common",
|
|
3
|
-
"version": "6.23.
|
|
3
|
+
"version": "6.23.1",
|
|
4
4
|
"description": "Code shared by the Pushwoosh WebSDK and the Control Panel, one entry point per module (web-popups: web popup model and renderer; subscription-widget: push subscription widget model and renderer; inbox: web inbox widget and inbox cell previews)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|