fix(android): let the keyboard shrink the layout viewport

This commit is contained in:
Erwan Leboucher committed 2026-08-22 20:11:26 +02:00
1 parent 2f24b567c4
commit 440d19b503
3 files changed
+12 -1

No files matched your search

@@ -0,0 +1,5 @@
---
default: patch
---
Fix the app not resizing above the on-screen keyboard on Android.
+1 -1
View File
@@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, viewport-fit=cover"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, viewport-fit=cover, interactive-widget=resizes-content"
/>
<title>Sable Client</title>
<meta name="name" content="Sable" />
+6
View File
@@ -110,6 +110,12 @@ describe('android edge-to-edge inset contract', () => {
expect(iosPwaViewport).toContain('isEditableFocused');
});
it('lets the android keyboard shrink the layout viewport', () => {
const indexHtml = readWorkspaceFile('index.html');
expect(indexHtml).toContain('interactive-widget=resizes-content');
});
it('removes the scattered safe-area css consumers', () => {
const indexCss = readWorkspaceFile('src/index.css');
const pageStyles = readWorkspaceFile('src/app/components/page/style.css.ts');