Merge branch 'galleryRedo2'
This commit is contained in:
commit
3581d03a48
|
@ -16,14 +16,28 @@ const styles = theme => ({
|
||||||
},
|
},
|
||||||
|
|
||||||
flamelinkGallery: {
|
flamelinkGallery: {
|
||||||
marginRight: "auto",
|
marginRight: 'auto',
|
||||||
marginLeft: "auto",
|
marginLeft: 'auto',
|
||||||
|
backgroundImage: 'url(../images/galleryBackgroundImage.png)',
|
||||||
|
overflow: 'hidden',
|
||||||
|
minHeight: 180,
|
||||||
|
minWidth: 300,
|
||||||
|
width: 'auto',
|
||||||
|
height: 'auto',
|
||||||
},
|
},
|
||||||
|
|
||||||
flamelinkGalleryContainer: {
|
flamelinkGalleryContainer: {
|
||||||
backgroundColor: 'black',
|
backgroundColor: 'black',
|
||||||
marginTop: 20,
|
marginTop: 20,
|
||||||
},
|
},
|
||||||
|
flamelinkGalleryInnerContainer: {
|
||||||
|
maxHeight: 1000,
|
||||||
|
minHeight: 180,
|
||||||
|
height: 'auto',
|
||||||
|
width: 'auto',
|
||||||
|
marginRight: 'auto',
|
||||||
|
marginLeft: 'auto',
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
class FlameLinkCollectionGallery extends Component {
|
class FlameLinkCollectionGallery extends Component {
|
||||||
|
@ -51,7 +65,7 @@ class FlameLinkCollectionGallery extends Component {
|
||||||
schemaDetails: '',
|
schemaDetails: '',
|
||||||
schemaContent: '',
|
schemaContent: '',
|
||||||
schemaDescription: '',
|
schemaDescription: '',
|
||||||
}
|
};
|
||||||
|
|
||||||
flamelinkApp.schemas.getFields(this.props.galleryName, { fields: ['title', 'key', 'type', 'gridColumns', 'description', 'options'] })
|
flamelinkApp.schemas.getFields(this.props.galleryName, { fields: ['title', 'key', 'type', 'gridColumns', 'description', 'options'] })
|
||||||
.then(result => this.setState({
|
.then(result => this.setState({
|
||||||
|
@ -111,8 +125,12 @@ class FlameLinkCollectionGallery extends Component {
|
||||||
{this.state.schemaDescription}
|
{this.state.schemaDescription}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Grid container className={classes.flamelinkGalleryContainer}>
|
<Grid container className={classes.flamelinkGalleryContainer}>
|
||||||
<Grid item lg={8} md={8} sm={12} xs={12} className={classes.flamelinkGallery} >
|
<Grid container className={classes.flamelinkGalleryInnerContainer}>
|
||||||
<RenderGallery key={Math.random()} />
|
<Grid item lg={8} md={8} sm={12} xs={12} className={classes.flamelinkGallery}>
|
||||||
|
<div>
|
||||||
|
<RenderGallery key={Math.random()} />
|
||||||
|
</div>
|
||||||
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
|
@ -9,9 +9,9 @@ class RenderGallery extends Component {
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
showThumbnails: false,
|
showThumbnails: false,
|
||||||
showIndex: true,
|
|
||||||
showBullets: true,
|
|
||||||
mounted: false,
|
mounted: false,
|
||||||
|
autoPlay: true,
|
||||||
|
slideInterval: 6000,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,9 +28,9 @@ class RenderGallery extends Component {
|
||||||
<ImageGallery
|
<ImageGallery
|
||||||
items={global.galleryImages}
|
items={global.galleryImages}
|
||||||
showThumbnails={this.state.showThumbnails}
|
showThumbnails={this.state.showThumbnails}
|
||||||
showIndex={this.state.showIndex}
|
|
||||||
showBullets={this.state.showBullets}
|
|
||||||
onImageLoad={this._onImageLoad}
|
onImageLoad={this._onImageLoad}
|
||||||
|
autoPlay={this.state.autoPlay}
|
||||||
|
slideInterval={this.state.slideInterval}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 6.6 KiB |
Loading…
Reference in New Issue