From 58b3d4b478fad359350e6bb04701ce27c32b6629 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Mon, 20 Apr 2026 23:03:41 +0200 Subject: [PATCH] fix(fitness): fit body-parts wizard to viewport and tint thigh SVG Cap shell height to viewport minus header so the bottombar stays visible, allow the stage to scroll internally, and swap the thigh diagram to a mask-tinted SVG that tracks the text-primary color across themes. --- package.json | 2 +- .../body-parts/+page.svelte | 54 +++++++++++-------- static/fitness/measure/thigh.svg | 13 +++++ 3 files changed, 47 insertions(+), 22 deletions(-) create mode 100644 static/fitness/measure/thigh.svg diff --git a/package.json b/package.json index d4dc3895..f69ee3c8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homepage", - "version": "1.37.1", + "version": "1.37.2", "private": true, "type": "module", "scripts": { diff --git a/src/routes/fitness/[measure=fitnessMeasure]/body-parts/+page.svelte b/src/routes/fitness/[measure=fitnessMeasure]/body-parts/+page.svelte index 60edfc8b..c3450c82 100644 --- a/src/routes/fitness/[measure=fitnessMeasure]/body-parts/+page.svelte +++ b/src/routes/fitness/[measure=fitnessMeasure]/body-parts/+page.svelte @@ -24,7 +24,7 @@ { key: 'forearms', labelKey: 'l_forearm', img: null, paired: true, tipKey: 'measure_tip_forearms', dbLeft: 'leftForearm', dbRight: 'rightForearm' }, { key: 'waist', labelKey: 'waist', img: 'waist.png', paired: false, tipKey: 'measure_tip_waist', dbSingle: 'waist' }, { key: 'hips', labelKey: 'hips', img: 'hips.png', paired: false, tipKey: 'measure_tip_hips', dbSingle: 'hips' }, - { key: 'thighs', labelKey: 'l_thigh', img: 'thigh.png', paired: true, tipKey: 'measure_tip_thighs', dbLeft: 'leftThigh', dbRight: 'rightThigh' }, + { key: 'thighs', labelKey: 'l_thigh', img: 'thigh.svg', paired: true, tipKey: 'measure_tip_thighs', dbLeft: 'leftThigh', dbRight: 'rightThigh' }, { key: 'calves', labelKey: 'calves', img: 'calves.png', paired: true, tipKey: 'measure_tip_calves', dbLeft: 'leftCalf', dbRight: 'rightCalf' } ]; @@ -347,7 +347,16 @@
{#if step.img} - + {#if step.img.endsWith('.svg')} + + {:else} + + {/if} {:else}