Skip to content

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.

Printouts: set values read left to right in Arabic too

Duarte Santos3eb892ad57b3
diff --git a/frontend/src/lib/report-print.js b/frontend/src/lib/report-print.js
index 217292fd4..74709f893 100644
--- a/frontend/src/lib/report-print.js
+++ b/frontend/src/lib/report-print.js
@@ -247,6 +247,9 @@ const REPORT_CSS = `
[dir="rtl"] .set { margin: 0 0 4pt 4pt; }
.set .k { display: block; font-size: 6.5pt; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.set .v { font-weight: 600; white-space: nowrap; }
+ /* "100×5 (RIR 2)" reads left to right in every language, Arabic included. */
+ .set .v, table.wk td.s { unicode-bidi: isolate; direction: ltr; }
+ [dir="rtl"] table.wk td.s { text-align: right; }
.set.warm { border-style: dashed; color: var(--muted); }
.set.warm .v { font-weight: 500; }
.set.skip { color: var(--faint); }