Improved bluemind usability
这个提交包含在:
父节点
2d59912c1a
当前提交
8163429539
共有 1 个文件被更改,包括 10 次插入 和 0 次删除
|
@ -4,6 +4,15 @@ import * as React from 'react';
|
||||||
import WebViewScreen from "../../../components/Screens/WebViewScreen";
|
import WebViewScreen from "../../../components/Screens/WebViewScreen";
|
||||||
|
|
||||||
const URL = 'https://etud-mel.insa-toulouse.fr/webmail/';
|
const URL = 'https://etud-mel.insa-toulouse.fr/webmail/';
|
||||||
|
|
||||||
|
const customPadding = (padding: string) => {
|
||||||
|
return (
|
||||||
|
"$('head').append('<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">');" +
|
||||||
|
"$('.minwidth').css('top', " + padding + ");" +
|
||||||
|
"$('#mailview-bottom').css('min-height', 500);"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class defining the app's available rooms screen.
|
* Class defining the app's available rooms screen.
|
||||||
* This screen uses a webview to render the page
|
* This screen uses a webview to render the page
|
||||||
|
@ -12,6 +21,7 @@ export const BlueMindWebsiteScreen = (props: Object) => {
|
||||||
return (
|
return (
|
||||||
<WebViewScreen
|
<WebViewScreen
|
||||||
{...props}
|
{...props}
|
||||||
|
customPaddingFunction={customPadding}
|
||||||
url={URL}/>
|
url={URL}/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
正在加载…
在新工单中引用