Skip to content

Commit

Permalink
Fix img style in search result
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszkononowicz committed Dec 1, 2018
1 parent 4876971 commit a28e9e5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.project_image {
max-width: 8vw;
max-height: 15vh;
float: left;
margin-right: 1vw;
}
Expand Down Expand Up @@ -54,4 +53,12 @@ h3 {
#publication-state {
font-style: italic;
color: var(--color-gray);
}

.img-wrapper {
width: 8vw;
display: block;
max-height: 15vw;
float: left;
margin-right: 1vw;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
class="options" [projectId]="project.id"></app-search-result-single-project-options>
<div id="inner_content" (click)="navigateToDetails()">
<div *ngIf="!showDefault; else noImageFound">
<img class="project_image" *ngIf="mainPhoto" [src]="mainPhoto">
<div class"img-wrapper">
<img class="project_image" *ngIf="mainPhoto" [src]="mainPhoto">
</div>
</div>
<div id="project_image_container">
<ng-template #noImageFound>
Expand Down

0 comments on commit a28e9e5

Please sign in to comment.