mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 18:04:18 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user