puter icon indicating copy to clipboard operation
puter copied to clipboard

Apps do not resize when keyboard is opened on mobile

Open r58Playz opened this issue 1 month ago • 1 comments

Opening the keyboard on mobile doesn't resize the app iframe clipping content

diff --git a/src/gui/src/initgui.js b/src/gui/src/initgui.js
index 6a8c8dfdd..a1eae4801 100644
--- a/src/gui/src/initgui.js
+++ b/src/gui/src/initgui.js
@@ -1336,7 +1336,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

suggested patch

r58Playz avatar Oct 09 '26 23:10 r58Playz

I've opened the PR with the fix for mobile keyboard clipping. Waiting for feedback

himanchalkaushale avatar Oct 10 '26 12:10 himanchalkaushale