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.
This commit is contained in:
1 parent
9e555a8c57
commit
c270f9db86
1 file changed
+12
-2
@@ -331,14 +331,24 @@
|
|||||||
line-height: 20px;
|
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) {
|
@media (max-width: 480px) {
|
||||||
.wrap {
|
.wrap {
|
||||||
right: 16px;
|
right: 16px;
|
||||||
bottom: 16px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel {
|
.panel {
|
||||||
width: calc(100vw - 32px);
|
width: calc(100vw - 32px);
|
||||||
height: calc(100vh - 100px);
|
height: calc(100dvh - 180px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user