diff --git a/.changeset/fix-android-keyboard-viewport-height.md b/.changeset/fix-android-keyboard-viewport-height.md new file mode 100644 index 000000000..a0d71e273 --- /dev/null +++ b/.changeset/fix-android-keyboard-viewport-height.md @@ -0,0 +1,5 @@ +--- +default: patch +--- + +Fix the app not resizing above the on-screen keyboard on Android. diff --git a/index.html b/index.html index a30ee45e7..69d8235a9 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Sable Client diff --git a/src/app/styles/edgeToEdgeInsets.test.ts b/src/app/styles/edgeToEdgeInsets.test.ts index f24fbe4d4..89ba85995 100644 --- a/src/app/styles/edgeToEdgeInsets.test.ts +++ b/src/app/styles/edgeToEdgeInsets.test.ts @@ -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');