diff --git a/server/public/home.html b/server/public/home.html index 89e0f61..7158a19 100644 --- a/server/public/home.html +++ b/server/public/home.html @@ -1081,15 +1081,18 @@ body.kb-open{--sab:0px;} /* Native-style push/pop: the conversation slides in from the right when opened and slides back out when you go back, so navigation has a clear direction (like Teams/WhatsApp). */ - @keyframes bzConvoIn{from{transform:translateX(100%);}to{transform:translateX(0);}} - @keyframes bzListIn{from{transform:translateX(-24%);}to{transform:translateX(0);}} - body.chat-open:not(.chat-closing):not(.chat-dragging) .content .panel{animation:bzConvoIn .22s cubic-bezier(.2,.7,.3,1);} - /* Close / interactive back (native push/pop, like Teams): reveal the chat LIST underneath with a - parallax slide-in while the conversation slides/drags off to the right. The conversation (.content) - is moved by an inline transform (showWelcome() for a tap, or the edge-drag gesture); the list - (.chatcol) is force-shown beneath it for the duration. */ - body.chat-closing .content, body.chat-dragging .content{display:block!important;z-index:2;box-shadow:-10px 0 26px rgba(15,23,42,.16);will-change:transform;} - body.chat-closing .chatcol{display:flex!important;position:absolute;inset:0;z-index:0;animation:bzListIn .2s cubic-bezier(.4,0,.7,.4);} + /* Native-style push/pop (like iOS/Teams): the conversation (.content) slides in from the right while + the chat LIST underneath slides with a subtle parallax. iOS spring-ish easing. */ + @keyframes bzContentIn{from{transform:translateX(100%);}to{transform:translateX(0);}} + @keyframes bzListParallaxOut{from{transform:translateX(0);filter:brightness(1);}to{transform:translateX(-22%);filter:brightness(.97);}} + @keyframes bzListParallaxIn{from{transform:translateX(-22%);filter:brightness(.97);}to{transform:translateX(0);filter:brightness(1);}} + /* OPEN: content slides in over the list (list shown beneath, parallax out) */ + body.chat-opening .content{display:block!important;z-index:2;box-shadow:-12px 0 30px rgba(15,23,42,.18);will-change:transform;animation:bzContentIn .3s cubic-bezier(.32,.72,0,1);} + body.chat-opening .chatcol{display:flex!important;position:absolute;inset:0;z-index:0;animation:bzListParallaxOut .3s cubic-bezier(.32,.72,0,1);} + /* CLOSE / drag-back: reveal the list underneath (parallax in) while the conversation slides off right + (.content moved by an inline transform in showWelcome()/the edge-drag gesture). */ + body.chat-closing .content, body.chat-dragging .content{display:block!important;z-index:2;box-shadow:-12px 0 30px rgba(15,23,42,.18);will-change:transform;} + body.chat-closing .chatcol{display:flex!important;position:absolute;inset:0;z-index:0;animation:bzListParallaxIn .28s cubic-bezier(.32,.72,0,1);} body.chat-dragging .chatcol{display:flex!important;position:absolute;inset:0;z-index:0;} /* Bigger touch targets */ .chat-row{padding:.7rem .85rem;} @@ -1117,7 +1120,7 @@
-