diff --git a/src/components/Photobook.jsx b/src/components/Photobook.jsx
deleted file mode 100644
index 5c65261..0000000
--- a/src/components/Photobook.jsx
+++ /dev/null
@@ -1,51 +0,0 @@
-import React from 'react'
-
-class Photobook extends React.Component {
-
-
- constructor(props) {
- super(props)
- this.state ={
- isLoading: true,
- isLoaded: false
- }
- this.loadImgs = this.loadImgs.bind(this)
- }
-
- loadImgs() {
- console.log(this.props.src)
- Promise.resolve()
- .then(fetch(this.props.src))
- .then(res => {
- console.log(res)
- })
- .then(() => {
- this.setState({ isLoading: false, isLoaded: true })
- })
- }
-
- componentDidMount() {
- if (this.state.isLoading) this.loadImgs()
- }
-
- // componentWillReceiveProps(nextProps) {
- //
- // if (!src.length) return this.setState({ isLoading: false, isLoaded: false })
- // this.setState({ isLoading: true, isLoaded: false })
- // }
-
- render() {
- if (this.state.isLoading) {
- return
Loading
- }
- return Ciao
- }
-}
-
-Photobook.propTypes = {
- loader: false,
- unloader: false,
- src: []
-}
-
-export default Photobook
diff --git a/src/components/SourceOverlay.jsx b/src/components/SourceOverlay.jsx
index 9e75798..724de27 100644
--- a/src/components/SourceOverlay.jsx
+++ b/src/components/SourceOverlay.jsx
@@ -15,11 +15,13 @@ class SourceOverlay extends React.Component {
}
renderVideo() {
+ // NB: assume only one video
return (
)
diff --git a/src/scss/mediaoverlay.scss b/src/scss/mediaoverlay.scss
index 3a6619b..9046ba7 100644
--- a/src/scss/mediaoverlay.scss
+++ b/src/scss/mediaoverlay.scss
@@ -147,11 +147,16 @@ $header-inset: 10px;
.source-image-container {
padding: 0 25px;
overflow-y: scroll;
- max-height: 100%;
- .source-image {
- max-width: calc(100% - 20px);
- max-height: 100%;
- padding: 10px;
- }
+ height: 100%;
}
+.source-image, .source-video {
+ max-width: calc(100% - 20px);
+ max-height: 350px !important;
+ height: 100%;
+ padding: 10px;
+}
+
+.media-player {
+ overflow-y: hidden;
+}