mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 14:05:44 +01:00
fix loading spinner on mobile devices
This commit is contained in:
@@ -1,10 +1,14 @@
|
|||||||
//@flow
|
//@flow
|
||||||
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { translate } from "react-i18next";
|
import { translate } from "react-i18next";
|
||||||
import injectSheet from "react-jss";
|
import injectSheet from "react-jss";
|
||||||
import Image from "./Image";
|
import Image from "./Image";
|
||||||
|
|
||||||
const styles = {
|
const styles = {
|
||||||
|
minHeightContainer: {
|
||||||
|
minHeight: "256px"
|
||||||
|
},
|
||||||
wrapper: {
|
wrapper: {
|
||||||
position: "relative"
|
position: "relative"
|
||||||
},
|
},
|
||||||
@@ -34,6 +38,7 @@ class Loading extends React.Component<Props> {
|
|||||||
render() {
|
render() {
|
||||||
const { message, t, classes } = this.props;
|
const { message, t, classes } = this.props;
|
||||||
return (
|
return (
|
||||||
|
<div className={classes.minHeightContainer}>
|
||||||
<div className={classes.wrapper}>
|
<div className={classes.wrapper}>
|
||||||
<div className={classes.loading}>
|
<div className={classes.loading}>
|
||||||
<Image
|
<Image
|
||||||
@@ -44,6 +49,7 @@ class Loading extends React.Component<Props> {
|
|||||||
<p className="has-text-centered">{message}</p>
|
<p className="has-text-centered">{message}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user