Improved bluemind usability

This commit is contained in:
Arnaud Vergnet 2020-06-06 19:38:32 +02:00
parent 2d59912c1a
commit 8163429539

View file

@ -4,6 +4,15 @@ import * as React from 'react';
import WebViewScreen from "../../../components/Screens/WebViewScreen";
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.
* This screen uses a webview to render the page
@ -12,6 +21,7 @@ export const BlueMindWebsiteScreen = (props: Object) => {
return (
<WebViewScreen
{...props}
customPaddingFunction={customPadding}
url={URL}/>
);
};