diff --git a/src/routes/fitness/workout/+page.svelte b/src/routes/fitness/workout/+page.svelte index 6b39e66..4896c9c 100644 --- a/src/routes/fitness/workout/+page.svelte +++ b/src/routes/fitness/workout/+page.svelte @@ -410,6 +410,7 @@ {#each editorExercises as ex, exIdx (exIdx)} {@const exercise = getExerciseById(ex.exerciseId)} {@const exMetrics = getExerciseMetrics(exercise).filter((/** @type {string} */ m) => m !== 'rpe')} + {@const hasRpe = getExerciseMetrics(exercise).includes('rpe')}
{exercise?.name ?? ex.exerciseId} @@ -433,6 +434,10 @@ {#if mIdx > 0}×{/if} {/each} + {#if hasRpe} + @ + + {/if} {#if ex.sets.length > 1} {/if} @@ -925,6 +930,9 @@ color: var(--color-text-secondary); font-size: 0.8rem; } + .rpe-input { + width: 3rem; + } .set-remove { background: none; border: none;