fix: cap bottom panel above virtual keyboard

This commit is contained in:
Zzy committed 2026-08-22 00:02:22 +08:00
1 parent 04686dcc7d
commit 1c330ba44f
2 files changed
+16 -6

No files matched your search

+6
View File
@@ -8,4 +8,10 @@ describe('Sidebar layout-push integration', () => {
expect(source).not.toContain('Math.min(state.bottomHeight, window.innerHeight)')
expect(source.match(/pushedBottomHeight\(/g)).toHaveLength(3)
})
it('caps panel geometry against the viewport visible above the keyboard', () => {
expect(source).toContain('viewport.height - keyboardInset')
expect(source.match(/viewportHeight: layoutViewportHeight/g)).toHaveLength(4)
expect(source).toContain('viewport.width, layoutViewportHeight]')
})
})