diff --git a/src/elements/Preview/Preview.css b/src/elements/Preview/Preview.css index 60c36f2..3db50f6 100644 --- a/src/elements/Preview/Preview.css +++ b/src/elements/Preview/Preview.css @@ -8,8 +8,17 @@ } .previewpic { + min-width: 266px; + min-height: 150px; height: 80%; overflow: hidden; + text-align: center; +} + +.loadAnimation { + display: inline-block; + line-height: 150px; + vertical-align: center; } .previewimage { diff --git a/src/elements/Preview/Preview.js b/src/elements/Preview/Preview.js index dd89694..77cbf4e 100644 --- a/src/elements/Preview/Preview.js +++ b/src/elements/Preview/Preview.js @@ -2,6 +2,7 @@ import React from "react"; import "./Preview.css"; import Player from "../../pages/Player/Player"; import VideoContainer from "../VideoContainer/VideoContainer"; +import {Spinner} from "react-bootstrap"; class Preview extends React.Component { constructor(props, context) { @@ -42,9 +43,12 @@ class Preview extends React.Component {
this.itemClick()}>
{this.state.name}
- Pic loading. + {this.state.previewpicture != null ? + Pic loading. : + } +