mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -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:
parent
3ab9a67577
commit
83d0a90a93
1 changed files with 5 additions and 2 deletions
|
@ -199,7 +199,7 @@ class PopupContent extends React.Component {
|
||||||
<CookieDisabledBanner message={cookieBannerText} />
|
<CookieDisabledBanner message={cookieBannerText} />
|
||||||
{this.renderPopupNotification()}
|
{this.renderPopupNotification()}
|
||||||
{this.renderActivePage()}
|
{this.renderActivePage()}
|
||||||
{(popupSize === 'full' ?
|
{(popupSize === 'full' ?
|
||||||
<div className={'gh-portal-powered inside ' + (hasMode(['preview']) ? 'hidden ' : '') + pageClass}>
|
<div className={'gh-portal-powered inside ' + (hasMode(['preview']) ? 'hidden ' : '') + pageClass}>
|
||||||
<PoweredBy />
|
<PoweredBy />
|
||||||
</div>
|
</div>
|
||||||
|
@ -252,7 +252,10 @@ export default class PopupModal extends React.Component {
|
||||||
}
|
}
|
||||||
` + FrameStyle;
|
` + FrameStyle;
|
||||||
return (
|
return (
|
||||||
<style dangerouslySetInnerHTML={{__html: styles}} />
|
<>
|
||||||
|
<style dangerouslySetInnerHTML={{__html: styles}} />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue