Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.
JavaScript apple-watchbodyweightdockerfitnessfitness-trackergymhealthiosmcpnodejspasskeysprogressive-web-applicationspwareactself-hostedself-hostingvitewebauthnweightliftingworkout-tracker
i18n: stop title-casing translated exercise names
Mirko Köster03cfa4a5c22b
diff --git a/frontend/src/components/MuscleExplorer.jsx b/frontend/src/components/MuscleExplorer.jsxindex 43b653150..8e4f64a4b 100644--- a/frontend/src/components/MuscleExplorer.jsx+++ b/frontend/src/components/MuscleExplorer.jsx@@ -5,7 +5,7 @@ import { activeProfile, exAvailable } from '../lib/equipment.js'import { bestWeightFor } from '../lib/history.js'import { fmtNum } from '../lib/format.js'import { MUSCLES, MUSCLE_NAME, musclesOf } from '../lib/muscles.js'-import { t, exerciseNameFor } from '../lib/i18n.js'+import { t, exerciseNameFor, exerciseNameClass } from '../lib/i18n.js'import BodyMap from './BodyMap.jsx'import { Thumb } from './Media.jsx'import Icon from './Icon.jsx'@@ -84,7 +84,7 @@ export default function MuscleExplorer({ onPick, onDetail, onPlan }) {const primary = musclesOf(e)[selected] === 1return <div key={e.id} className="item" {...tappable(() => choose(e))}><Thumb ex={e} />- <div className="grow"><div className="tt capitalize">{isFav(S, e.id) && <Icon name="starFill" className="fav-star" />}{exerciseNameFor(e)}</div><div className="ss">{t(primary ? 'Primary target' : 'Also trains')} · <span className="capitalize">{t(MUSCLE_NAME[e.tg] || e.tg || e.bp)} · {t(e.eq)}</span></div></div>+ <div className="grow"><div className={`tt ${exerciseNameClass()}`}>{isFav(S, e.id) && <Icon name="starFill" className="fav-star" />}{exerciseNameFor(e)}</div><div className="ss">{t(primary ? 'Primary target' : 'Also trains')} · <span className="capitalize">{t(MUSCLE_NAME[e.tg] || e.tg || e.bp)} · {t(e.eq)}</span></div></div>{onPick ? <Icon name="plus" className="chev" /> : <>{best > 0 && <span className="tag acc">{fmtNum(best)}</span>}<Button size="sm" variant="tinted" icon="plus" onClick={ev => { ev.stopPropagation(); onPlan(e) }}>{t('Plan')}</Button>diff --git a/frontend/src/lib/i18n-core.js b/frontend/src/lib/i18n-core.jsindex b891ca408..afc05b976 100644--- a/frontend/src/lib/i18n-core.js+++ b/frontend/src/lib/i18n-core.js@@ -90,6 +90,14 @@ export const exerciseNameFor = ex => {: `${translated} (${ex.n})`}+// EXDB stores English names lower-case and the UI title-cases them with CSS. A translated pack+// carries its own casing and must not be cased again on top: German lower-cases adjectives+// ("Assistiertes hängendes Knieheben"), Hungarian lower-cases common nouns. So the class that+// does the title-casing belongs on the element only while the English fallback is showing.+// Callers spread this onto the element that holds exerciseNameFor's output, nothing else —+// muscle and equipment labels next to it are t() strings and keep their own capitalize.+export const exerciseNameClass = () => (exerciseNames ? '' : 'capitalize')+// Search both the localized and canonical English title without changing persisted data.export const exerciseNameSearchText = ex => {const translated = exerciseNames && ex && exerciseNames[ex.id]diff --git a/frontend/src/lib/i18n-core.test.js b/frontend/src/lib/i18n-core.test.jsindex 563459247..7302fc7de 100644--- a/frontend/src/lib/i18n-core.test.js+++ b/frontend/src/lib/i18n-core.test.js@@ -1,7 +1,7 @@import { describe, it, expect } from 'vitest'import {LANGS, INSTR_LANGS, EXERCISE_NAME_LANGS, DATE_LOCALES, DERIVED_LOCALES,- baseLang, derivePack, dateLocale, getLang, t, _setLangState+ baseLang, derivePack, dateLocale, getLang, t, _setLangState, exerciseNameClass} from './i18n-core.js'import de from '../locales/de.js'@@ -99,3 +99,19 @@ describe('de-CH as a selectable language', () => {expect(DERIVED_LOCALES.de).toBeUndefined()})})++// EXDB stores English names lower-case and the UI title-cases them with CSS. A translated pack+// brings its own casing, and applying capitalize on top of it produced "Bankdrücken Mit+// Langhantel" in German and "Has" for Hungarian common nouns.+describe('exerciseNameClass', () => {+ it('title-cases only while the English fallback is showing', () => {+ _setLangState('en', {}, null, null)+ expect(exerciseNameClass()).toBe('capitalize')+ _setLangState('de', {}, null, null)+ expect(exerciseNameClass()).toBe('capitalize')+ _setLangState('de', {}, null, { '0025': 'Bankdrücken mit Langhantel' })+ expect(exerciseNameClass()).toBe('')+ _setLangState('en', {}, null, null)+ expect(exerciseNameClass()).toBe('capitalize')+ })+})diff --git a/frontend/src/lib/i18n.js b/frontend/src/lib/i18n.jsindex 71069331a..58a3a7c5f 100644--- a/frontend/src/lib/i18n.js+++ b/frontend/src/lib/i18n.js@@ -7,12 +7,12 @@ import { useSyncExternalStore } from 'react'import {LANGS, INSTR_LANGS, EXERCISE_NAME_LANGS, DATE_LOCALES, DERIVED_LOCALES,getLang, dateLocale, t, instrFor, exerciseNameFor, exerciseNameSearchText, getVersion,- baseLang, derivePack, _setLangState+ baseLang, derivePack, _setLangState, exerciseNameClass} from './i18n-core.js'export {LANGS, INSTR_LANGS, EXERCISE_NAME_LANGS, DATE_LOCALES, DERIVED_LOCALES,- getLang, dateLocale, t, instrFor, exerciseNameFor, exerciseNameSearchText+ getLang, dateLocale, t, instrFor, exerciseNameFor, exerciseNameSearchText, exerciseNameClass}// Vite code-splits locale, instruction and exercise-name packs via import.meta.glob. They arediff --git a/frontend/src/lib/plan-share.js b/frontend/src/lib/plan-share.jsindex affc02f85..614af18f2 100644--- a/frontend/src/lib/plan-share.js+++ b/frontend/src/lib/plan-share.js@@ -12,7 +12,7 @@ import { EXIDX, isBodyweightEq } from './exercises.js'import { modeOf, fmtSec, isBw, isPerSide, sideReps, MAX_PLANNED_WARMUPS } from './history.js'import { deriveSessionName } from './session-merge.js'import { uid, todayISO, DAYN, weekOrder, weekStartOf, fmtNum, exCount } from './format.js'-import { t, exerciseNameFor } from './i18n-core.js'+import { t, exerciseNameFor, exerciseNameClass } from './i18n-core.js'import { convertWeight } from './units.js'import { MUSCLES, inMuscleOrder } from './muscles.js'@@ -390,7 +390,7 @@ export function planPrintHTML(S, owner) {.ex { display: flex; flex-direction: column; padding: 6px 0; break-inside: avoid; page-break-inside: avoid; }.ex + .ex, .ss + .ex, .ex + .ss { border-top: 1px solid #f2f3f6; }.ex-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }- .ex-n { text-transform: capitalize; font-weight: 500; }+ .ex-n { text-transform: ${exerciseNameClass() ? 'capitalize' : 'none'}; font-weight: 500; }.ex-n .part { text-transform: capitalize; color: #9aa0ae; font-weight: 400; font-size: 12px; margin-left: 8px; }.ex-s { color: #3d424e; white-space: nowrap; font-variant-numeric: tabular-nums; }.ex-note { color: #6a7080; font-size: 12px; margin-top: 2px; }diff --git a/frontend/src/sheets.jsx b/frontend/src/sheets.jsxindex e484bdf87..efab76729 100644--- a/frontend/src/sheets.jsx+++ b/frontend/src/sheets.jsx@@ -8,7 +8,7 @@ import { lastEntryFor, bestWeightFor, bestWeightForEntry, buildSets, effectiveRoimport { usesBar, barWeightFor, defaultBarWeight, hasBarOverride, isNoBar } from './lib/bar.js'import { toScale, rirOf, EFFORT_PRESETS, effortColor } from './lib/effort.js'import { beep, vibrate } from './lib/sound.js'-import { t, dateLocale, instrFor, exerciseNameFor, getLang, INSTR_LANGS } from './lib/i18n.js'+import { t, dateLocale, instrFor, exerciseNameFor, exerciseNameClass, getLang, INSTR_LANGS } from './lib/i18n.js'import { nav } from './lib/nav.js'import { buildStarterPlan, starterPlanDays, starterPlanOptions } from './lib/starter.js'import Media, { Thumb } from './components/Media.jsx'@@ -619,7 +619,7 @@ function BarWeightSheet({ exId, close }) {const ex = exOr(exId)return <><h3>{t('Bar weight')}</h3>- <div className="muted small capitalize" style={{ marginBottom: 12 }}>{exerciseNameFor(ex)}</div>+ <div className={`muted small ${exerciseNameClass()}`} style={{ marginBottom: 12 }}>{exerciseNameFor(ex)}</div><BarWeightEditor ex={ex} extra={t('Applies to this exercise everywhere, not just this plan.')} /><Button variant="primary" onClick={close}>{t('Done')}</Button></>@@ -667,7 +667,7 @@ function ExerciseDetail({ ex, close }) {}return <><div className="row between" style={{ gap: 8, alignItems: 'flex-start' }}>- <h3 className="capitalize">{exerciseNameFor(ex)}</h3>+ <h3 className={exerciseNameClass()}>{exerciseNameFor(ex)}</h3><button className={'iconbtn fav-btn' + (fav ? ' on' : '')} aria-pressed={fav}aria-label={fav ? t('Remove from favourites') : t('Add to favourites')} onClick={flipFav}><Icon name={fav ? 'starFill' : 'star'} />@@ -716,7 +716,7 @@ function ExerciseHistory({ exId }) {const unit = h.metric === 'weight' ? st.unit : h.metric === 'reps' ? t('reps') : h.metric === 'sec' ? 's' : t('min')const e1Best = useMemo(() => Math.max(0, ...h.e1rmPoints.map(p => p.y)), [h])if (!h.total) return <>- <h3 className="capitalize">{exerciseNameFor(ex)}</h3>+ <h3 className={exerciseNameClass()}>{exerciseNameFor(ex)}</h3><div className="empty"><div className="ico"><Icon name="history" /></div>{t('No sessions logged yet')}</div></>const tail = s => [@@ -724,7 +724,7 @@ function ExerciseHistory({ exId }) {s.e1rm != null && t('Est. 1RM') + ' ' + fmtNum(s.e1rm) + ' ' + st.unit,].filter(Boolean).join(' · ')return <>- <h3 className="capitalize" style={{ marginBottom: 2 }}>{exerciseNameFor(ex)}</h3>+ <h3 className={exerciseNameClass()} style={{ marginBottom: 2 }}>{exerciseNameFor(ex)}</h3><div className="muted small" style={{ marginBottom: 10 }}>{t('Exercise history')} · {t(h.total === 1 ? '{0} session' : '{0} sessions', h.total)}</div>{/* Only reps work with a load produces an estimate, so the toggle is absent for the rest. */}{h.e1rmPoints.length > 0 && h.metric === 'weight' && <Segmented className="seg-range" value={curve} onChange={setCurve}@@ -764,12 +764,12 @@ function AddToRoutine({ ex, close }) {if (r) r.ex.push({ id: ex.id, ...cfg })})const r = isNew ? S().routines[S().routines.length - 1] : st.routines.find(x => x.id === rid)- toast(t('“{0}” added to {1}', capWords(exerciseNameFor(ex)), r ? r.name : t('routine')))+ toast(t('“{0}” added to {1}', exerciseNameClass() ? capWords(exerciseNameFor(ex)) : exerciseNameFor(ex), r ? r.name : t('routine')))if (isNew && r) nav('/plan/r/' + r.id)}, null, isNew ? null : st.routines.find(x => x.id === rid))}return <>- <h3 className="capitalize">{t('Add “{0}”', exerciseNameFor(ex))}</h3>+ <h3 className={exerciseNameClass()}>{t('Add “{0}”', exerciseNameFor(ex))}</h3><div className="muted small" style={{ marginBottom: 12 }}>{t('Pick a routine — sets, reps & weight come next.')}</div><div className="list">{st.routines.map(r => <div key={r.id} className="item" {...tappable(() => pick(r.id))}>@@ -982,7 +982,7 @@ function ExercisePicker({ onPick, close }) {<div className="grow"><div className="tt">{t('Create your own exercise')}</div><div className="ss">{t('name + body part, no animation')}</div></div><Icon name="plus" className="chev" /></div>}{f.slice(0, shown).map(e => <div key={e.id} className="item" {...tappable(() => onPick(e))}>- <Thumb ex={e} /><div className="grow"><div className="tt capitalize">{isFav(st, e.id) && <Icon name="starFill" className="fav-star" />}{exerciseNameFor(e)}</div><div className="ss capitalize">{t(MUSCLE_NAME[e.tg] || e.tg || e.bp)} · {t(e.eq)}</div></div>+ <Thumb ex={e} /><div className="grow"><div className={`tt ${exerciseNameClass()}`}>{isFav(st, e.id) && <Icon name="starFill" className="fav-star" />}{exerciseNameFor(e)}</div><div className="ss capitalize">{t(MUSCLE_NAME[e.tg] || e.tg || e.bp)} · {t(e.eq)}</div></div>{/* Accent tag = already in a routine/log ("Chosen"); the yellow star by the name = favourite. */}{usage[e.id] && <span className="tag acc"><Icon name="starFill" /></span>}{/* A "+" glyph reads as "add this now" — it used to just open the same detail sheet as@@ -1259,7 +1259,7 @@ function ExConfig({ ex, existing, onSave, onDelete, close, routine, initial }) {}}return <>- <h3 className="capitalize">{exerciseNameFor(ex)}</h3>+ <h3 className={exerciseNameClass()}>{exerciseNameFor(ex)}</h3><Media ex={ex} />{/* The same tags the exercise detail sheet shows, secondaries included: choosing what goesinto a plan is exactly when "what else does this hit" matters, and until now that was@@ -1699,7 +1699,7 @@ function WorkoutDetail({ w, close }) {const ex = EXIDX[e.id]return <div key={i} className="row" style={{ marginBottom: 12, alignItems: 'flex-start' }}>{ex && <Thumb ex={ex} />}- <div className="grow"><div className="tt capitalize" style={{ fontWeight: 600 }}>{ex ? exerciseNameFor(ex) : (e.n || e.id)} {w.prs && w.prs.includes(e.id) && <span className="pr"><Icon name="trophy" />PR</span>}</div>+ <div className="grow"><div className={`tt ${exerciseNameClass()}`} style={{ fontWeight: 600 }}>{ex ? exerciseNameFor(ex) : (e.n || e.id)} {w.prs && w.prs.includes(e.id) && <span className="pr"><Icon name="trophy" />PR</span>}</div><div className="ss">{e.sets.filter(hasCompletedWork).map(s => setLabel(e.id, s, e.target)).join(' · ') || t('no sets')}</div>{e.note && <div className="small dim" style={{ marginTop: 3 }}>{e.notePin && <Icon name="flag" style={{ fontSize: 12, marginRight: 4, verticalAlign: '-1px', color: 'var(--yellow)' }} />}{e.note}@@ -1991,7 +1991,7 @@ function TopWeight({ entryIdx, close }) {} else toast(t('Tracked — next time starts at {0}', fmtNum(S().exWeights[entry.id].w) + ' ' + st.unit))}return <>- <h3 className="capitalize row" style={{ gap: 8 }}><Icon name="checkCircle" style={{ color: 'var(--acc)' }} />{t('{0} done', exerciseNameFor(ex))}</h3>+ <h3 className={`row ${exerciseNameClass()}`} style={{ gap: 8 }}><Icon name="checkCircle" style={{ color: 'var(--acc)' }} />{t('{0} done', exerciseNameFor(ex))}</h3><div className="muted small">{t('Confirm the weight you worked with — your highest becomes the default next time.')}{!unitDone && unit.length > 1 ? ' ' + t('Then finish the superset partner.') : ''}</div><WeightInput value={v} setValue={setV} unit={st.unit} /><div style={{ height: 10 }} />@@ -2047,7 +2047,7 @@ function ExerciseNote({ entryIdx, close }) {}return <>- <h3 className="capitalize">{exerciseNameFor(ex)}</h3>+ <h3 className={exerciseNameClass()}>{exerciseNameFor(ex)}</h3><div className="small muted" style={{ marginBottom: 6 }}>{t('This session')}</div><textarea ref={noteRef} className="input" rows={3} maxLength={NOTE_MAX} value={note}placeholder={t('How it went, what to change — kept with today’s workout.')}@@ -2167,8 +2167,8 @@ function FinishSummary({ w, prs, e1prs = [], close }) {<div className="tile"><div className="l">{t('PRs')}</div><div className="v" style={{ fontSize: 20 }}>{prs.length || '—'}</div></div></div>{(prs.length > 0 || e1prs.length > 0) && <div style={{ textAlign: 'left', marginBottom: 12 }}>- {prs.map(id => <div key={id} className="small accent row" style={{ gap: 5 }}><Icon name="trophy" style={{ fontSize: 13 }} />{t('New PR:')} <span className="capitalize">{EXIDX[id] ? exerciseNameFor(EXIDX[id]) : id}</span></div>)}- {e1prs.map(p => <div key={p.id} className="small accent row" style={{ gap: 5 }}><Icon name="chartLine" style={{ fontSize: 13 }} />{t('Best estimated 1RM:')} <span className="capitalize">{EXIDX[p.id] ? exerciseNameFor(EXIDX[p.id]) : p.id}</span> · {fmtNum(p.est)} {st.unit}</div>)}+ {prs.map(id => <div key={id} className="small accent row" style={{ gap: 5 }}><Icon name="trophy" style={{ fontSize: 13 }} />{t('New PR:')} <span className={exerciseNameClass()}>{EXIDX[id] ? exerciseNameFor(EXIDX[id]) : id}</span></div>)}+ {e1prs.map(p => <div key={p.id} className="small accent row" style={{ gap: 5 }}><Icon name="chartLine" style={{ fontSize: 13 }} />{t('Best estimated 1RM:')} <span className={exerciseNameClass()}>{EXIDX[p.id] ? exerciseNameFor(EXIDX[p.id]) : p.id}</span> · {fmtNum(p.est)} {st.unit}</div>)}</div>}<h4 className="sec" style={{ textAlign: 'left' }}>{t('What you just trained')}</h4><BodyMap load={loadOfWorkouts([w])} body={st.body} />diff --git a/frontend/src/views/Library.jsx b/frontend/src/views/Library.jsxindex 84ffd7dc8..7521823f5 100644--- a/frontend/src/views/Library.jsx+++ b/frontend/src/views/Library.jsx@@ -6,7 +6,7 @@ import { MUSCLE_NAME } from '../lib/muscles.js'import { activeProfile, exAvailable } from '../lib/equipment.js'import { bestWeightFor } from '../lib/history.js'import { fmtNum } from '../lib/format.js'-import { t, exerciseNameFor } from '../lib/i18n.js'+import { t, exerciseNameFor, exerciseNameClass } from '../lib/i18n.js'import { Thumb } from '../components/Media.jsx'import { exerciseDetailSheet, addToRoutineSheet, customExSheet } from '../sheets.jsx'import Icon from '../components/Icon.jsx'@@ -67,7 +67,7 @@ export default function Library() {const best = bestWeightFor(S, e.id)return <div key={e.id} className="item" {...tappable(() => exerciseDetailSheet(e))}><Thumb ex={e} />- <div className="grow"><div className="tt capitalize">{isFav(S, e.id) && <Icon name="starFill" className="fav-star" />}{exerciseNameFor(e)}</div><div className="ss capitalize">{t(MUSCLE_NAME[e.tg] || e.tg || e.bp)} · {t(e.eq)}</div></div>+ <div className="grow"><div className={`tt ${exerciseNameClass()}`}>{isFav(S, e.id) && <Icon name="starFill" className="fav-star" />}{exerciseNameFor(e)}</div><div className="ss capitalize">{t(MUSCLE_NAME[e.tg] || e.tg || e.bp)} · {t(e.eq)}</div></div>{best > 0 && <span className="tag acc">{fmtNum(best)}</span>}<Button size="sm" variant="tinted" icon="plus" onClick={ev => { ev.stopPropagation(); addToRoutineSheet(e) }}>{t('Plan')}</Button></div>diff --git a/frontend/src/views/RoutineEdit.jsx b/frontend/src/views/RoutineEdit.jsxindex b6b18d103..9674e2808 100644--- a/frontend/src/views/RoutineEdit.jsx+++ b/frontend/src/views/RoutineEdit.jsx@@ -5,7 +5,7 @@ import { useUI } from '../store/useUI.js'import { exOr } from '../lib/exercises.js'import { activeProfile, exAvailable } from '../lib/equipment.js'import { uid } from '../lib/format.js'-import { t, exerciseNameFor } from '../lib/i18n.js'+import { t, exerciseNameFor, exerciseNameClass } from '../lib/i18n.js'import { supersetUnits, moveSupersetUnit, cleanupSg, exLine, defaultConfig } from '../lib/history.js'import { Thumb } from '../components/Media.jsx'import { glyphPicker, exercisePicker, exConfigSheet, confirmSheet } from '../sheets.jsx'@@ -400,7 +400,7 @@ export default function RoutineEdit() {exConfigSheet(ex, e, cfg => edit(x => { x[i] = { id: x[i].id, sg: x[i].sg, ...cfg } }), () => edit(x => { x.splice(i, 1); cleanupSg(x) }), r)}}><Thumb ex={ex} />- <div className="grow"><div className="tt capitalize">{exerciseNameFor(ex)}</div><div className="ss">{exLine(e, S.unit)}</div>+ <div className="grow"><div className={`tt ${exerciseNameClass()}`}>{exerciseNameFor(ex)}</div><div className="ss">{exLine(e, S.unit)}</div>{e.note && <div className="small dim" style={{ marginTop: 2 }}>{e.note}</div>}</div>{noEquip && <span className="tag" style={{ color: 'var(--orange)', borderColor: 'var(--orange)' }} title={t('Needs {0} — not in your active profile', t(ex.eq))}><Icon name="warning" /></span>}<div style={{ display: 'flex', flexDirection: 'column', gap: 2, flex: 'none', alignItems: 'center' }}>diff --git a/frontend/src/views/Workout.jsx b/frontend/src/views/Workout.jsxindex bed11c5e8..6aaf395ae 100644--- a/frontend/src/views/Workout.jsx+++ b/frontend/src/views/Workout.jsx@@ -8,7 +8,7 @@ import { usesBar, barWeightFor, plateSplit } from '../lib/bar.js'import { effectiveRoutines, effectiveRoutineIds, lastEntryFor, bestWeightFor, bestWeightForEntry, buildSets, freestyleConfig, defaultConfig, setsDoneActive, setUnitsTotal, supersetUnits, unitOf, setLabel, modeOf, isBw, isPerSide, repStep, EFFORT, effortOf, stepEffort, capEffort, cascadeWeight, insertWarmupRow, removeRowAt, pairAdjacent, unpairSuperset, cleanupSg, applyIntensifierPlan, pinnedNoteFor, exNoteFor } from '../lib/history.js'import { fmtNum, capWords, fmtDate, todayISO, exCount, DAYN } from '../lib/format.js'import { beep, vibrate, unlock } from '../lib/sound.js'-import { t, exerciseNameFor } from '../lib/i18n.js'+import { t, exerciseNameFor, exerciseNameClass } from '../lib/i18n.js'import { api, appBase } from '../lib/api.js'import { insertionIndexAfterCurrentUnit, nextUnfinishedUnit, setProgressHighWater, supersetFlowStep, restAfterSet, restOnRecheck, restSecFor, warmupRestSecFor } from '../lib/supersetFlow.js'import Media from '../components/Media.jsx'@@ -368,7 +368,7 @@ function ExerciseBlock({ entryIdx, compact, dense, onToggle, onToggleSide, onFiereturn <>{!dense && <Media ex={ex} key={entry.id} compact={compact} minimizable />}<div className="row between" style={{ marginBottom: 6 }}>- <div style={{ fontSize: (compact || dense) ? 17 : 20, fontWeight: 600, letterSpacing: '-.02em', textTransform: 'capitalize', lineHeight: 1.2 }}>{exerciseNameFor(ex)}</div>+ <div style={{ fontSize: (compact || dense) ? 17 : 20, fontWeight: 600, letterSpacing: '-.02em', lineHeight: 1.2 }} className={exerciseNameClass()}>{exerciseNameFor(ex)}</div><div className="row" style={{ gap: 2, flex: 'none' }}>{entry.note && <button className="iconbtn" aria-label={t('Note')} title={t('Note')} style={{ color: 'var(--acc)' }}onClick={() => exerciseNoteSheet(entryIdx)}><Icon name="pencil" /></button>}