From c270f9db86d2c01f2e93a11abcaf1e12fcddbfef Mon Sep 17 00:00:00 2001 From: Mekan1206 Date: Sun, 16 Aug 2026 19:35:56 +0500 Subject: [PATCH] Enhance ChatWidget styles for responsive design. Added media queries to adjust positioning and dimensions of the chat wrap and panel for better usability on smaller screens. --- src/components/ChatWidget/ChatWidget.module.scss | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/ChatWidget/ChatWidget.module.scss b/src/components/ChatWidget/ChatWidget.module.scss index ddb8108..f12a2f5 100644 --- a/src/components/ChatWidget/ChatWidget.module.scss +++ b/src/components/ChatWidget/ChatWidget.module.scss @@ -331,14 +331,24 @@ line-height: 20px; } +@media (max-width: 1023px) { + .wrap { + right: 16px; + bottom: calc(72px + env(safe-area-inset-bottom, 0px)); + } + + .panel { + max-height: calc(100dvh - 180px); + } +} + @media (max-width: 480px) { .wrap { right: 16px; - bottom: 16px; } .panel { width: calc(100vw - 32px); - height: calc(100vh - 100px); + height: calc(100dvh - 180px); } }