forked from vergnet/application-amicale
Improved bluemind usability
This commit is contained in:
parent
2d59912c1a
commit
8163429539
1 changed files with 10 additions and 0 deletions
|
@ -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}/>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue