Skip to content

Commit

Permalink
fix 2994182: keep 100vh on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Sep 7, 2024
1 parent a26c9a4 commit 06d7c65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion popup/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ const $entry = styleOrId => $(`#${ENTRY_ID_PREFIX_RAW}${styleOrId.id || styleOrI
initPopup(...data);
showStyles(...data);
require(['/popup/hotkeys']);
if (!UA.mobile) window.on('resize', onWindowResize);
if (UA.mobile) document.body.style.maxHeight = '100vh';
else window.on('resize', onWindowResize);
})();

msg.onExtension(onRuntimeMessage);
Expand Down

0 comments on commit 06d7c65

Please sign in to comment.