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.

Coach-Chat: Kopfzeile bleibt beim Scrollen oben stehen

Duarte Santos20042356d12a
diff --git a/frontend/src/coach.css b/frontend/src/coach.css
index a018c66e9..f5e8e15f5 100644
--- a/frontend/src/coach.css
+++ b/frontend/src/coach.css
@@ -76,7 +76,16 @@
/* ---------- chat ---------- */
.chat{padding-bottom:40px}
-.chat-hdr{display:flex;align-items:center;gap:10px;margin:2px 0 14px}
+.chat-hdr{
+ display:flex;align-items:center;gap:10px;
+ /* Pinned like a messenger's title bar: it eats the app shell's top padding so the blur
+ reaches the status bar, and gives it back as its own padding. */
+ position:sticky;top:0;z-index:40;
+ margin:calc(-1 * (var(--sat) + 8px)) calc(-1 * var(--pad)) 8px;
+ padding:calc(var(--sat) + 8px) var(--pad) 8px;
+ background:color-mix(in srgb,var(--bg) 88%,transparent);
+ -webkit-backdrop-filter:saturate(180%) blur(12px);backdrop-filter:saturate(180%) blur(12px)
+}
.chat-hdr .chat-av{
width:38px;height:38px;border-radius:99px;background:var(--acc);color:var(--on-acc);
display:flex;align-items:center;justify-content:center;font-size:20px;flex:none