v0.12.34 iOS bug fixes
This commit is contained in:
@@ -64,7 +64,15 @@
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.chat-layout {
|
||||
position: relative;
|
||||
/* position: fixed keeps the layout pinned to the visual viewport even when
|
||||
iOS scrolls the page on keyboard open. Without this, iOS scrolls the page
|
||||
to bring the focused textarea into view, moving it to the top of the screen.
|
||||
--visual-viewport-offset tracks the visual viewport's scrolled position so
|
||||
the layout follows if iOS shifts it (usually 0, non-zero during keyboard open). */
|
||||
position: fixed;
|
||||
top: var(--visual-viewport-offset, 0px);
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
.chat-body {
|
||||
overflow: hidden;
|
||||
|
||||
Reference in New Issue
Block a user