mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-08 16:39:42 +02:00
fix: keyboard visibility offset issue - remove problematic top positioning
- Remove top/bottom positioning from modal-content when keyboard visible - Reset --viewport-offset-top to 0 when keyboard closes - Add focusout handler to help reset keyboard state on iOS - Simplify modal keyboard CSS to only adjust max-height Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -8420,10 +8420,7 @@ kbd {
|
||||
.keyboard-visible .modal-content {
|
||||
/* Don't take full height - resize with keyboard */
|
||||
height: auto;
|
||||
max-height: calc(100dvh - var(--keyboard-height) - var(--safe-area-top));
|
||||
/* Anchor to top */
|
||||
top: var(--safe-area-top);
|
||||
bottom: auto;
|
||||
max-height: calc(100dvh - var(--keyboard-height));
|
||||
}
|
||||
|
||||
.keyboard-visible .modal-body {
|
||||
@@ -8432,18 +8429,6 @@ kbd {
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
/* Ensure modal footer stays visible above keyboard */
|
||||
.keyboard-visible .modal-footer,
|
||||
.keyboard-visible .wizard-footer,
|
||||
.keyboard-visible .form-actions {
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
/* Smooth transition for keyboard appearance */
|
||||
.modal-content {
|
||||
transition: max-height 0.2s ease-out, top 0.2s ease-out;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
|
||||
Reference in New Issue
Block a user