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

<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

Fixes #

#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).

<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
This commit is contained in:
Erwan Leboucher authored and GitHub committed 2026-08-22 20:21:14 +02:00
commit 2aaeb82d89
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');