fix: Mobiler Chat ohne Überlagerung: schmale und niedrige Fenster fließen normal, Kopf scrollt mit (#1171)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-21 18:16:44 +01:00
parent 05b46dc0c5
commit e6c38856a1

View File

@ -1282,6 +1282,14 @@ body:has(#chat)>main{flex:1 1 auto;min-height:0;display:flex;flex-direction:colu
body:has(#chat) .chat-rahmen{flex:1 1 auto;min-height:24rem}
body:has(#chat)>main>h1,body:has(#chat)>main>p{flex:0 0 auto}
body:has(#chat) #chat{flex:1 1 auto;height:auto;min-height:0;margin-bottom:.6rem}
/* Schmale oder niedrige Fenster (auch mit Bildschirmtastatur): Die Seite fließt normal und scrollt, die Karte ist so hoch
wie ihr Inhalt, nur der Verlauf scrollt in einem begrenzten Bereich. So liegt nichts übereinander (#1171). */
@media (max-width:40rem),(max-height:34rem){body:has(#chat){height:auto;min-height:100vh;min-height:100dvh;display:block;overflow:visible}
body:has(#chat)>header{position:static}
body:has(#chat)>main{display:block;overflow:visible}
body:has(#chat) .chat-rahmen{min-height:0}
body:has(#chat) #chat{height:auto;min-height:0}
body:has(#chat) #chat .verlauf{flex:0 0 auto;min-height:8rem;max-height:55vh;max-height:55dvh}}
@media (max-width:40rem){header .innen{gap:.6rem 1rem}header form{margin-left:auto}header nav{order:3;width:100%;flex-wrap:nowrap;overflow-x:auto}
header nav a{padding:.3rem .8rem;white-space:nowrap}h1{font-size:1.3rem}.card{padding:.9rem 1rem}}
/* CHAT-03: Seitenleiste mit Verlauf neben dem Chat, auf schmalen Fenstern ausgeblendet. */