mirror of
https://github.com/HeyPuter/puter.git
synced 2026-10-20 02:22:19 +00:00
fix(gui): resize app content above mobile keyboard (#4165)
Add interactive-widget=resizes-content to the mobile viewport meta tag so the layout viewport shrinks when the soft keyboard opens. The app window's height chain resolves against the layout viewport, so the iframe folds up above the keyboard instead of clipping behind it.
This commit is contained in:
1 parent
948772165d
commit
f37cb22d8a
1 file changed
+1
-1
@@ -1355,7 +1355,7 @@ window.initgui = async function (options) {
|
||||
// Appends a viewport meta tag to the head of the document, ensuring optimal display on mobile devices.
|
||||
// This tag sets the width of the viewport to the device width, and locks the zoom level to 1 (prevents user scaling).
|
||||
$('head').append(
|
||||
'<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover">',
|
||||
'<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover, interactive-widget=resizes-content">',
|
||||
);
|
||||
|
||||
// will hold the result of the whoami API call
|
||||
|
||||
Reference in new issue
Block a user