From 163121b22ed3631da2409fda51fb48dce93a534d Mon Sep 17 00:00:00 2001 From: ajmaley Date: Wed, 5 Dec 2018 20:35:45 -0500 Subject: [PATCH] Gallery not recovering from slow network bug fix --- src/components/FlameLinkCollectionGallery.js | 16 ++++------------ src/components/RenderGallery.js | 6 ++---- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/src/components/FlameLinkCollectionGallery.js b/src/components/FlameLinkCollectionGallery.js index 47d4300..6f9f7bc 100644 --- a/src/components/FlameLinkCollectionGallery.js +++ b/src/components/FlameLinkCollectionGallery.js @@ -20,7 +20,7 @@ const styles = theme => ({ marginLeft: 'auto', backgroundImage: 'url(../images/galleryBackgroundImage.png)', overflow: 'hidden', - minHeight: 300, + minHeight: 180, minWidth: 300, width: 'auto', height: 'auto', @@ -32,7 +32,7 @@ const styles = theme => ({ }, flamelinkGalleryInnerContainer: { maxHeight: 1000, - minHeight: 250, + minHeight: 180, height: 'auto', width: 'auto', marginRight: 'auto', @@ -57,10 +57,6 @@ class FlameLinkCollectionGallery extends Component { break; } } - - state = { - active: false, - } constructor(props) { super(props); @@ -92,10 +88,6 @@ class FlameLinkCollectionGallery extends Component { this.getPageTitle(this.props.galleryName); } - toggleClass = () => { - this.setState(state => ({ active: !state.active })); - } - getGalleryInfo(schemaDetails, schemaContent) { var key; var mediaNums = []; @@ -134,8 +126,8 @@ class FlameLinkCollectionGallery extends Component { - -
+ +
diff --git a/src/components/RenderGallery.js b/src/components/RenderGallery.js index fc316b8..5a06f1f 100644 --- a/src/components/RenderGallery.js +++ b/src/components/RenderGallery.js @@ -9,10 +9,9 @@ class RenderGallery extends Component { this.state = { showThumbnails: false, - showIndex: true, - showBullets: true, mounted: false, autoPlay: true, + slideInterval: 6000, } } @@ -29,10 +28,9 @@ class RenderGallery extends Component { ); }