mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-20 00:51:17 -08:00
fix(android): let the keyboard shrink the layout viewport
This commit is contained in:
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
@@ -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" />
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user