@onekeyfe/react-native-native-list 6.7.0-52 → 6.7.0-53

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.
@@ -285,6 +285,10 @@ content; `lineGap` separates content text rows (primary/secondary per data colum
285
285
  for activity, the native failure label or rich title badges; Web has no activity
286
286
  badge target);
287
287
  `trailingGap` separates trailing values/controls (title/badge to status for rail).
288
+ For identity those are the trailing accessories: a `valuePair` is one accessory,
289
+ so the gap sits between it and its neighbours and never between its two lines,
290
+ on every platform. For activity the gap separates `primaryAmount` from
291
+ `secondaryAmount`.
288
292
  `walletGroup` padding applies only to the group; it never cascades into members.
289
293
  Composite metric-card `lineGap` separates heading/metric blocks and dividers; it
290
294
  does not change the typography or inner label/value gap of each metric.
@@ -269,7 +269,9 @@ function applyIdentityStyle(body, row) {
269
269
  }
270
270
  if (box.trailingGap !== undefined) {
271
271
  const gap = String(box.trailingGap) + 'px';
272
- body.querySelectorAll('.ok-native-list-accessories, .ok-native-list-amounts').forEach(trailing => {
272
+ // The accessory row only. A value pair is one accessory whose two lines
273
+ // are a flex column, so a gap there would push the lines apart.
274
+ body.querySelectorAll('.ok-native-list-accessories').forEach(trailing => {
273
275
  trailing.style.gap = gap;
274
276
  });
275
277
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-native-list",
3
- "version": "6.7.0-52",
3
+ "version": "6.7.0-53",
4
4
  "description": "Template-driven native RecyclerView and UICollectionView for React Native",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./lib/module/index.js",
@@ -505,10 +505,10 @@ function applyIdentityStyle(body: HTMLElement, row: IdentityRow) {
505
505
  }
506
506
  if (box.trailingGap !== undefined) {
507
507
  const gap = String(box.trailingGap) + 'px';
508
+ // The accessory row only. A value pair is one accessory whose two lines
509
+ // are a flex column, so a gap there would push the lines apart.
508
510
  body
509
- .querySelectorAll<HTMLElement>(
510
- '.ok-native-list-accessories, .ok-native-list-amounts'
511
- )
511
+ .querySelectorAll<HTMLElement>('.ok-native-list-accessories')
512
512
  .forEach((trailing) => {
513
513
  trailing.style.gap = gap;
514
514
  });