Fixes to the card blur hash usage and skeleton
This commit is contained in:
parent
eaae6f5b94
commit
813894aa7d
|
@ -41,11 +41,7 @@
|
|||
min-height: 171px;
|
||||
max-height: 171px;
|
||||
|
||||
img {
|
||||
width: 130px !important;
|
||||
height: 130px !important;
|
||||
}
|
||||
.skeleton {
|
||||
&.skeleton {
|
||||
width: 130px !important;
|
||||
height: 130px !important;
|
||||
}
|
||||
|
@ -105,11 +101,18 @@
|
|||
opacity: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
img {
|
||||
width: 170px;
|
||||
height: 170px;
|
||||
/deep/ img,
|
||||
/deep/ canvas {
|
||||
width: 170px !important;
|
||||
height: 170px !important;
|
||||
border-radius: 0px;
|
||||
visibility: hidden;
|
||||
object-fit: cover;
|
||||
object-position: center;
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
width: 130px !important;
|
||||
height: 130px !important;
|
||||
}
|
||||
}
|
||||
.card-thumbnail {
|
||||
width: 170px;
|
||||
|
@ -119,11 +122,9 @@
|
|||
background-repeat: no-repeat;
|
||||
margin: 0;
|
||||
}
|
||||
.skeleton {
|
||||
&.skeleton {
|
||||
width: 170px;
|
||||
height: 170px;
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
background-color: var(--tainacan-skeleton-color);
|
||||
}
|
||||
.metadata-title {
|
||||
|
|
|
@ -67,20 +67,24 @@
|
|||
@click.prevent="starSlideshowFromHere(index)"
|
||||
class="icon slideshow-icon">
|
||||
<i class="tainacan-icon tainacan-icon-viewgallery tainacan-icon-1-125em"/>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<!-- Remaining metadata -->
|
||||
<!-- Remaining metadata -->
|
||||
<div class="media">
|
||||
<div
|
||||
v-if="!shouldHideItemsThumbnail"
|
||||
:style="{ backgroundImage: 'url(' + $thumbHelper.getSrc(item['thumbnail'], 'tainacan-medium', item.document_mimetype) + ')' }"
|
||||
class="card-thumbnail">
|
||||
<img
|
||||
:alt="item.thumbnail_alt ? item.thumbnail_alt : $i18n.get('label_thumbnail')"
|
||||
v-if="item.thumbnail != undefined"
|
||||
:src="$thumbHelper.getSrc(item['thumbnail'], 'tainacan-medium', item.document_mimetype)">
|
||||
<blur-hash-image
|
||||
v-if="item.thumbnail != undefined"
|
||||
:width="$thumbHelper.getWidth(item['thumbnail'], 'tainacan-medium', 120)"
|
||||
:height="$thumbHelper.getHeight(item['thumbnail'], 'tainacan-medium', 120)"
|
||||
:hash="$thumbHelper.getBlurhashString(item['thumbnail'], 'tainacan-medium')"
|
||||
:src="$thumbHelper.getSrc(item['thumbnail'], 'tainacan-medium', item.document_mimetype)"
|
||||
:srcset="$thumbHelper.getSrcSet(item['thumbnail'], 'tainacan-medium', item.document_mimetype)"
|
||||
:alt="item.thumbnail_alt ? item.thumbnail_alt : $i18n.get('label_thumbnail')"
|
||||
:transition-duration="500"
|
||||
/>
|
||||
</div>
|
||||
<div class="skeleton"/>
|
||||
|
||||
<div class="list-metadata media-body">
|
||||
<!-- Description -->
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
@click.prevent="starSlideshowFromHere(index)"
|
||||
class="icon slideshow-icon">
|
||||
<i class="tainacan-icon tainacan-icon-viewgallery tainacan-icon-1-125em"/>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<!-- Thumbnail -->
|
||||
|
|
Loading…
Reference in New Issue