fix(journey): the card under the finger grows while swiping, and the zoom buttons really go on touch screens

- The entry carousel draws the card at the centre larger while the swipe is
  still moving (focusIndex, a transform), and the active card and the map
  follow 90 ms after it stops instead of 150; the grow takes 200 ms
- The journey map's zoom buttons set their display inline, which beat the
  class that hides them on touch screens; the display is a class now (#3001)
- The packing widget data no longer carries a colour literal
This commit is contained in:
Maurice
2026-11-06 21:30:27 +01:00
parent 3364c0d131
commit 77b9252577
7 changed files with 46 additions and 15 deletions
+2 -1
View File
@@ -78,7 +78,8 @@ export async function packingDetail(
const grams = b.total_weight_grams ?? inBag.reduce((sum, i) => sum + (i.weight_grams ?? 0) * (i.quantity ?? 1), 0);
return {
name: b.name,
color: HEX.test(b.color) ? b.color : '#4A7DDB',
// Empty when the bag has no usable colour: the widget then uses its own blue.
color: HEX.test(b.color) ? b.color : '',
grams,
...(b.weight_limit_grams ? { limit: b.weight_limit_grams } : {}),
packed: inBag.filter((i) => i.checked).length,