62741: Journal-types grid elements & grid thumbnail fix/improvement

This commit is contained in:
Kristof De Langhe
2019-06-07 12:51:27 +02:00
parent 16bad82564
commit 22ae5a04e7
18 changed files with 151 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
<div class="card" [@focusShadow]="(isCollapsed() | async)?'blur':'focus'">
<a [routerLink]="['/items/' + dso.id]" class="card-img-top full-width">
<div>
<ds-grid-thumbnail [thumbnail]="dso.getThumbnail()">
<ds-grid-thumbnail [thumbnail]="this.item.getThumbnail() | async">
</ds-grid-thumbnail>
</div>
</a>

View File

@@ -7,6 +7,11 @@ ds-wrapper-grid-element ::ng-deep {
div.thumbnail > img {
height: $card-thumbnail-height;
width: 100%;
display: block;
min-width: 100%;
min-height: 100%;
object-fit: cover;
object-position: 50% 15%;
}
div.card {
margin-top: $ds-wrapper-grid-spacing;