Fixed webview error on ios

這個提交存在於:
keplyx 2019-11-09 16:50:28 +01:00
父節點 15107a6adc
當前提交 fc47332d61
共有 3 個檔案被更改,包括 5 行新增3 行删除

查看文件

@ -200,7 +200,9 @@ export default class WebViewScreen extends React.Component<Props, State> {
locked={true} locked={true}
style = {{ style = {{
paddingTop: this.state.isLandscape ? 20 : 0, 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 + '\'>' + '<a style=\'margin: auto\' href=\'' + BIB_URL + '\'>' +
'<button id=\'customBackButton\' class=\'btn btn-primary\'>Retour</button>' + '<button id=\'customBackButton\' class=\'btn btn-primary\'>Retour</button>' +
'</a>' + '</a>' +
'</div>");'; '</div>");true;';
} }
render() { 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 += \'<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"/>\';' + '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="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()) if (ThemeManager.getNightMode())
this.customInjectedJS += 'document.querySelector(\'head\').innerHTML += \'<link rel="stylesheet" href="' + CUSTOM_CSS_NIGHTMODE + '" type="text/css"/>\';'; this.customInjectedJS += 'document.querySelector(\'head\').innerHTML += \'<link rel="stylesheet" href="' + CUSTOM_CSS_NIGHTMODE + '" type="text/css"/>\';';
} }