Merge pull request #66 from alDuncanson/galleryRedo2

Gallery redo2
This commit is contained in:
Alex Duncanson 2018-12-06 10:03:50 -05:00 committed by GitHub
commit d677a6f3a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 9 deletions

View File

@ -16,14 +16,28 @@ const styles = theme => ({
},
flamelinkGallery: {
marginRight: "auto",
marginLeft: "auto",
marginRight: 'auto',
marginLeft: 'auto',
backgroundImage: 'url(../images/galleryBackgroundImage.png)',
overflow: 'hidden',
minHeight: 180,
minWidth: 300,
width: 'auto',
height: 'auto',
},
flamelinkGalleryContainer: {
backgroundColor: 'black',
marginTop: 20,
},
flamelinkGalleryInnerContainer: {
maxHeight: 1000,
minHeight: 180,
height: 'auto',
width: 'auto',
marginRight: 'auto',
marginLeft: 'auto',
},
});
class FlameLinkCollectionGallery extends Component {
@ -51,7 +65,7 @@ class FlameLinkCollectionGallery extends Component {
schemaDetails: '',
schemaContent: '',
schemaDescription: '',
}
};
flamelinkApp.schemas.getFields(this.props.galleryName, { fields: ['title', 'key', 'type', 'gridColumns', 'description', 'options'] })
.then(result => this.setState({
@ -111,8 +125,12 @@ class FlameLinkCollectionGallery extends Component {
{this.state.schemaDescription}
</Typography>
<Grid container className={classes.flamelinkGalleryContainer}>
<Grid item lg={8} md={8} sm={12} xs={12} className={classes.flamelinkGallery} >
<Grid container className={classes.flamelinkGalleryInnerContainer}>
<Grid item lg={8} md={8} sm={12} xs={12} className={classes.flamelinkGallery}>
<div>
<RenderGallery key={Math.random()} />
</div>
</Grid>
</Grid>
</Grid>
</Grid>

View File

@ -9,9 +9,9 @@ class RenderGallery extends Component {
this.state = {
showThumbnails: false,
showIndex: true,
showBullets: true,
mounted: false,
autoPlay: true,
slideInterval: 6000,
}
}
@ -28,9 +28,9 @@ class RenderGallery extends Component {
<ImageGallery
items={global.galleryImages}
showThumbnails={this.state.showThumbnails}
showIndex={this.state.showIndex}
showBullets={this.state.showBullets}
onImageLoad={this._onImageLoad}
autoPlay={this.state.autoPlay}
slideInterval={this.state.slideInterval}
/>
);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB