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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user