correct sort order of css properties
mocking of fetch api only once in setupTests
This commit is contained in:
@ -37,7 +37,7 @@ class Preview extends React.Component {
|
||||
<div className={style.videopreview} onClick={() => this.itemClick()}>
|
||||
<div className={style.previewtitle}>{this.state.name}</div>
|
||||
<div className={style.previewpic}>
|
||||
{this.state.previewpicture != null ?
|
||||
{this.state.previewpicture !== null ?
|
||||
<img className={style.previewimage}
|
||||
src={this.state.previewpicture}
|
||||
alt='Pic loading.'/> :
|
||||
|
@ -1,16 +1,16 @@
|
||||
.previewtitle {
|
||||
height: 20px;
|
||||
color: #3d3d3d;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
max-width: 266px;
|
||||
font-size: smaller;
|
||||
font-weight: bold;
|
||||
height: 20px;
|
||||
max-width: 266px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.previewpic {
|
||||
min-width: 266px;
|
||||
min-height: 150px;
|
||||
height: 80%;
|
||||
min-height: 150px;
|
||||
min-width: 266px;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
}
|
||||
@ -18,14 +18,14 @@
|
||||
.loadAnimation {
|
||||
display: inline-block;
|
||||
line-height: 150px;
|
||||
vertical-align: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.previewimage {
|
||||
min-height: 150px;
|
||||
max-height: 400px;
|
||||
min-width: 266px;
|
||||
max-width: 410px;
|
||||
min-height: 150px;
|
||||
min-width: 266px;
|
||||
}
|
||||
|
||||
.previewbottom {
|
||||
@ -33,28 +33,28 @@
|
||||
}
|
||||
|
||||
.videopreview {
|
||||
background-color: #a8c3ff;
|
||||
border-radius: 20px;
|
||||
cursor: pointer;
|
||||
/*background-color: #7F7F7F;*/
|
||||
float: left;
|
||||
margin-left: 25px;
|
||||
margin-top: 25px;
|
||||
/*background-color: #7F7F7F;*/
|
||||
background-color: #a8c3ff;
|
||||
cursor: pointer;
|
||||
opacity: 0.85;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
.videopreview:hover {
|
||||
box-shadow: rgba(2, 12, 27, 0.7) 0 0 0 5px;
|
||||
opacity: 1;
|
||||
box-shadow: rgba(2, 12, 27, 0.7) 0px 0px 0px 5px;
|
||||
transition: all 300ms;
|
||||
}
|
||||
|
||||
.tagpreview {
|
||||
text-transform: uppercase;
|
||||
font-weight: bolder;
|
||||
font-size: x-large;
|
||||
text-align: center;
|
||||
font-weight: bolder;
|
||||
height: 150px;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
width: 266px;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user