+ Add cover for screen.

This commit is contained in:
zhujinyong
2022-12-26 08:40:47 +08:00
parent 469702357b
commit f6c4838800
8 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
.screen {border-radius: 4px; border: solid 1px #ddd; margin-bottom: 20px; position: relative;}
.screen .top {text-align: center; min-height:182px; position:relative;}
.screen .top.img {height: 182px; text-align: center;}
.screen .top.img img {height:100%; width:auto}
.screen .top.img img {height:100%; overflow: hidden; object-fit: cover; object-position: top;}
.screen .top .image {height:100%; display:flex; align-items:center; justify-content:center;}
.screen .top .image i {font-size:100px;}
.screen .top .image i:before {content: '\f1c5';}
+1
View File
@@ -2,3 +2,4 @@
.go-preview-scale > div {margin: 0 auto !important;}
.go-preview.scrollY {background: #001028 !important;}
.go-preview-entity {width: auto !important; height: auto !important;}
.hint-layer {width: 400px; white-space: break-spaces!important;}
+2 -2
View File
@@ -14,9 +14,9 @@
<div class='col-md-3' data-id='<?php echo $screenID;?>'>
<a href='<?php echo $viewLink?>' target="_blank" />
<div class='screen'>
<?php if(!empty($file)):?>
<?php if(!empty($screen->cover)):?>
<div class='top img'>
<img src='<?php echo $file->webPath;?>' controls='controls' width='100%'/>
<img src='<?php echo $screen->cover;?>' controls='controls' width='100%'/>
</div>
<?php else:?>
<div class='top img bg<?php echo $i?>'>