forked from vergnet/application-amicale
Fixed webview error on ios
This commit is contained in:
parent
15107a6adc
commit
fc47332d61
3 changed files with 5 additions and 3 deletions
|
@ -200,7 +200,9 @@ export default class WebViewScreen extends React.Component<Props, State> {
|
|||
locked={true}
|
||||
style = {{
|
||||
paddingTop: this.state.isLandscape ? 20 : 0,
|
||||
backgroundColor: ThemeManager.getCurrentThemeVariables().brandPrimary
|
||||
backgroundColor: Platform.OS === 'ios' ?
|
||||
ThemeManager.getCurrentThemeVariables().tabDefaultBg :
|
||||
ThemeManager.getCurrentThemeVariables().brandPrimary
|
||||
}}
|
||||
|
||||
>
|
||||
|
|
|
@ -42,7 +42,7 @@ export default class AvailableRoomScreen extends React.Component<Props> {
|
|||
'<a style=\'margin: auto\' href=\'' + BIB_URL + '\'>' +
|
||||
'<button id=\'customBackButton\' class=\'btn btn-primary\'>Retour</button>' +
|
||||
'</a>' +
|
||||
'</div>");';
|
||||
'</div>");true;';
|
||||
}
|
||||
|
||||
render() {
|
||||
|
|
|
@ -29,7 +29,7 @@ export default class PlanexScreen extends React.Component<Props> {
|
|||
'document.querySelector(\'head\').innerHTML += \'<meta name="viewport" content="width=device-width, initial-scale=1.0">\';' +
|
||||
'document.querySelector(\'head\').innerHTML += \'<link rel="stylesheet" href="' + CUSTOM_CSS_GENERAL + '" type="text/css"/>\';' +
|
||||
'$(".fc-toolbar .fc-center").append(\'<p id="rotateToLandscape">' + i18n.t("planexScreen.rotateToLandscape") + '</p>\');' +
|
||||
'$(".fc-toolbar .fc-center").append(\'<p id="rotateToPortrait">' + i18n.t("planexScreen.rotateToPortrait") + '</p>\');';
|
||||
'$(".fc-toolbar .fc-center").append(\'<p id="rotateToPortrait">' + i18n.t("planexScreen.rotateToPortrait") + '</p>\');true;';
|
||||
if (ThemeManager.getNightMode())
|
||||
this.customInjectedJS += 'document.querySelector(\'head\').innerHTML += \'<link rel="stylesheet" href="' + CUSTOM_CSS_NIGHTMODE + '" type="text/css"/>\';';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue