0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Removed input auto-zoom for mobile

Adds meta tag for iframe head to control viewport in mobile devices
This commit is contained in:
Rishabh 2022-03-29 14:02:09 +05:30
parent 3ab9a67577
commit 83d0a90a93

View file

@ -199,7 +199,7 @@ class PopupContent extends React.Component {
<CookieDisabledBanner message={cookieBannerText} />
{this.renderPopupNotification()}
{this.renderActivePage()}
{(popupSize === 'full' ?
{(popupSize === 'full' ?
<div className={'gh-portal-powered inside ' + (hasMode(['preview']) ? 'hidden ' : '') + pageClass}>
<PoweredBy />
</div>
@ -252,7 +252,10 @@ export default class PopupModal extends React.Component {
}
` + FrameStyle;
return (
<style dangerouslySetInnerHTML={{__html: styles}} />
<>
<style dangerouslySetInnerHTML={{__html: styles}} />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
</>
);
}