Fix mobile AI chat keyboard overlap and keep input focused
This commit is contained in:
15
styles.css
15
styles.css
@@ -881,7 +881,7 @@ li a span {
|
||||
.ai-chat {
|
||||
position: fixed;
|
||||
right: 24px;
|
||||
bottom: 24px;
|
||||
bottom: calc(24px + var(--ai-chat-keyboard-offset, 0px));
|
||||
z-index: 1100;
|
||||
transition: bottom 0.25s ease;
|
||||
font-family:
|
||||
@@ -896,7 +896,7 @@ li a span {
|
||||
}
|
||||
|
||||
.ai-chat.ai-chat--raised {
|
||||
bottom: 96px;
|
||||
bottom: calc(96px + var(--ai-chat-keyboard-offset, 0px));
|
||||
}
|
||||
|
||||
.ai-chat__fab {
|
||||
@@ -1012,21 +1012,22 @@ li a span {
|
||||
@media (max-width: 600px) {
|
||||
.ai-chat {
|
||||
right: 14px;
|
||||
bottom: 14px;
|
||||
bottom: calc(14px + var(--ai-chat-keyboard-offset, 0px));
|
||||
}
|
||||
|
||||
.ai-chat.ai-chat--raised {
|
||||
bottom: 82px;
|
||||
bottom: calc(82px + var(--ai-chat-keyboard-offset, 0px));
|
||||
}
|
||||
|
||||
.ai-chat__panel {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
bottom: var(--ai-chat-keyboard-offset, 0px);
|
||||
width: 100vw;
|
||||
max-width: none;
|
||||
border-radius: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.ai-chat__panel.is-open {
|
||||
|
||||
Reference in New Issue
Block a user