diff --git a/server/public/home.html b/server/public/home.html index ff5348c..491f5fc 100644 --- a/server/public/home.html +++ b/server/public/home.html @@ -1020,7 +1020,13 @@ relocated into the chat-list header (see placeHdrRight). The shell is pushed below the device status bar so no view overlaps it. */ header{display:none;} - .shell{padding-top:env(safe-area-inset-top,0px);} + /* #3: kill any horizontal drift on phones (long content, 100vw children, safe-area math) — the page + should never pan left/right. */ + html,body{overflow-x:hidden;max-width:100vw;} + .shell,.content,.chatcol,.panel,.convo,.convo-msgs,.chatlist{overflow-x:hidden;max-width:100%;} + /* #1/#5: the top safe-area inset (notch / Dynamic Island) is applied PER SURFACE — the chat-list + column and each content panel — rather than on the whole shell, so nothing hides under the island + and there's no double-padding. Bottom inset is handled by the fixed nav + panel bottom below. */ .side-title{gap:.5rem;} .side-title h2{flex:1;} .side-title #hdrRight{display:flex;align-items:center;gap:.4rem;flex:0 0 auto;} @@ -1046,12 +1052,12 @@ /* Meeting room code: always fully visible, full-width, easy to read */ .meet-bar .code{flex:1 1 100%;font-size:.9rem;white-space:normal;word-break:break-word;text-align:center;background:var(--blue-soft);border-radius:8px;padding:.35rem .5rem;} /* Chat: one pane at a time (list, then the open conversation) */ - .chatcol{width:100%;flex:1 1 100%;padding-bottom:calc(60px + env(safe-area-inset-bottom,0px));} + .chatcol{width:100%;flex:1 1 100%;padding-top:env(safe-area-inset-top,0px);padding-bottom:calc(60px + env(safe-area-inset-bottom,0px));} body.chat-open .chatcol{display:none;} .content{display:none;} body.chat-open .content, .shell:not(.is-chat) .content{display:block;} .shell:not(.is-chat) .chatcol{display:none;} - .content .panel{bottom:calc(60px + env(safe-area-inset-bottom,0px));} /* clear the bottom nav + home indicator */ + .content .panel{top:env(safe-area-inset-top,0px);bottom:calc(60px + env(safe-area-inset-bottom,0px));} /* below the notch; clear the bottom nav + home indicator */ /* Bigger touch targets */ .chat-row{padding:.7rem .85rem;} .convo-head{padding:.7rem .85rem;} @@ -1078,7 +1084,7 @@ -