@poolse/react-native 3.7.0 → 3.7.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/CHANGELOG.md +9 -0
- package/dist/index.cjs +14 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -10
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -3259,8 +3259,7 @@ function MentionRow({
|
|
|
3259
3259
|
numberOfLines: 1,
|
|
3260
3260
|
children: name
|
|
3261
3261
|
}
|
|
3262
|
-
)
|
|
3263
|
-
name !== externalId ? /* @__PURE__ */ jsx(Text, { style: [styles13.rowId, { color: theme.colors.textSubtle }], numberOfLines: 1, children: externalId }) : null
|
|
3262
|
+
)
|
|
3264
3263
|
]
|
|
3265
3264
|
}
|
|
3266
3265
|
);
|
|
@@ -3281,14 +3280,12 @@ var styles13 = StyleSheet.create({
|
|
|
3281
3280
|
paddingVertical: 8,
|
|
3282
3281
|
gap: 10
|
|
3283
3282
|
},
|
|
3283
|
+
// The name alone, with the whole row's width: an id next to it only
|
|
3284
|
+
// pushed the name out.
|
|
3284
3285
|
rowText: {
|
|
3286
|
+
flex: 1,
|
|
3285
3287
|
fontSize: 14,
|
|
3286
|
-
fontWeight: "500"
|
|
3287
|
-
flexShrink: 1
|
|
3288
|
-
},
|
|
3289
|
-
rowId: {
|
|
3290
|
-
fontSize: 12,
|
|
3291
|
-
flexShrink: 1
|
|
3288
|
+
fontWeight: "500"
|
|
3292
3289
|
},
|
|
3293
3290
|
dismiss: {
|
|
3294
3291
|
position: "absolute",
|
|
@@ -4206,6 +4203,9 @@ function formatClock(date, format2) {
|
|
|
4206
4203
|
}
|
|
4207
4204
|
return date.toLocaleTimeString([], { hour: "numeric", minute: "2-digit" });
|
|
4208
4205
|
}
|
|
4206
|
+
function gutterTime(time) {
|
|
4207
|
+
return time.replace(/\s+(?=[AaPp]\.?[Mm]\.?$)/, "").replace(/\u202f/g, "");
|
|
4208
|
+
}
|
|
4209
4209
|
function formatMessageTime(iso, format2) {
|
|
4210
4210
|
if (!iso) return "";
|
|
4211
4211
|
const date = new Date(iso);
|
|
@@ -5311,7 +5311,8 @@ function FlatMessageRow({
|
|
|
5311
5311
|
{ color: theme.colors.textSubtle, fontFamily: theme.fonts.body },
|
|
5312
5312
|
dim ? styles23.timeDim : null
|
|
5313
5313
|
],
|
|
5314
|
-
|
|
5314
|
+
...dim ? { numberOfLines: 1, adjustsFontSizeToFit: true, minimumFontScale: 0.6 } : {},
|
|
5315
|
+
children: dim ? gutterTime(time) : time
|
|
5315
5316
|
}
|
|
5316
5317
|
);
|
|
5317
5318
|
const header = compact ? name : isRunStart ? /* @__PURE__ */ jsxs(View, { style: styles23.header, children: [
|
|
@@ -5566,7 +5567,10 @@ var styles23 = StyleSheet.create({
|
|
|
5566
5567
|
},
|
|
5567
5568
|
timeDim: {
|
|
5568
5569
|
fontSize: 10,
|
|
5569
|
-
opacity: 0.7
|
|
5570
|
+
opacity: 0.7,
|
|
5571
|
+
// Fill the gutter so shrink-to-fit measures against its width.
|
|
5572
|
+
width: GUTTER,
|
|
5573
|
+
textAlign: "center"
|
|
5570
5574
|
},
|
|
5571
5575
|
attachments: {
|
|
5572
5576
|
marginVertical: 4,
|