From 20042356d12a54adb8e5f5858a1ffb3e4002b28a Mon Sep 17 00:00:00 2001 From: Duarte Santos Date: Sun, 30 Aug 2026 18:00:19 +0200 Subject: [PATCH] Coach-Chat: Kopfzeile bleibt beim Scrollen oben stehen Name, Avatar und Menue-Knopf sind sticky mit Blur-Hintergrund bis in die Statusleiste, wie in einem Messenger. --- frontend/src/coach.css | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/frontend/src/coach.css b/frontend/src/coach.css index a018c66..f5e8e15 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