Merge branch 'application-mgt-new' into 'application-mgt-new'

Improve the screenshots view of the APPM UI

See merge request entgra/carbon-device-mgt!297
feature/appm-store/pbac
Dharmakeerthi Lasantha 5 years ago
commit 2d98768188

@ -34,9 +34,34 @@
} }
.release .release-screenshot img{ .release .release-screenshot img{
width: 100%; height:450px;
border-radius: 15px; border-radius: 15px;
padding: 5px; padding: 15px;
}
.release .release-images{
overflow-x: auto;
overflow-y: hidden;
}
.release .release-images::-webkit-scrollbar-track{
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
background-color: #F5F5F5;
border-radius: 10px;
}
.release .release-images::-webkit-scrollbar{
height: 8px;
background-color: #F5F5F5;
}
.release .release-images::-webkit-scrollbar-thumb{
background-color: #aaaaaa;
border-radius: 10px;
}
.release .release-screenshot{
display: table-cell;
} }
.main-container{ .main-container{

@ -122,12 +122,12 @@ class ReleaseView extends React.Component {
</Col> </Col>
</Row> </Row>
<Divider/> <Divider/>
<Row> <Row className="release-images">
{release.screenshots.map((screenshotUrl) => { {release.screenshots.map((screenshotUrl) => {
return ( return (
<Col key={"col-" + screenshotUrl} lg={6} md={8} xs={8} className="release-screenshot"> <div key={"col-" + screenshotUrl} className="release-screenshot">
<img key={screenshotUrl} src={screenshotUrl}/> <img key={screenshotUrl} src={screenshotUrl}/>
</Col> </div>
) )
})} })}
</Row> </Row>

@ -34,9 +34,35 @@
} }
.release .release-screenshot img{ .release .release-screenshot img{
width: 100%; height: 400px;
border-radius: 15px; border-radius: 15px;
padding: 5px; padding: 10px;
}
.release .release-images{
overflow-x: auto;
overflow-y: hidden;
}
.release .release-images::-webkit-scrollbar-track{
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
background-color: #F5F5F5;
border-radius: 10px;
}
.release .release-images::-webkit-scrollbar{
height: 8px;
background-color: #F5F5F5;
}
.release .release-images::-webkit-scrollbar-thumb{
background-color: #aaaaaa;
border-radius: 10px;
}
.release .release-screenshot{
display: table-cell;
} }
.main-container{ .main-container{

@ -44,13 +44,13 @@ class ImgViewer extends Component {
movable : false movable : false
}; };
return ( return (
<div> <div className="release-images">
<RcViewer options={options} ref='viewer'> <RcViewer options={options} ref='viewer'>
{this.props.images.map((screenshotUrl) => { {this.props.images.map((screenshotUrl) => {
return ( return (
<Col key={"col-" + screenshotUrl} lg={6} md={8} xs={8} className="release-screenshot"> <div key={"col-" + screenshotUrl} className="release-screenshot">
<img key={screenshotUrl} src={screenshotUrl}/> <img alt="screenshot" key={screenshotUrl} src={screenshotUrl}/>
</Col> </div>
) )
})} })}
</RcViewer> </RcViewer>

Loading…
Cancel
Save