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.
This commit is contained in:
Duarte Santos committed 2026-08-30 18:00:19 +02:00
1 parent b23f52a3d7
commit 20042356d1
1 file changed
+10 -1
+10 -1
View File
@@ -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