Skip to content

Commit

Permalink
feature/character-detail — Removed fallback image for comic's cover. …
Browse files Browse the repository at this point in the history
…Replaced by a grey background and comic title.
  • Loading branch information
jeandat committed Mar 18, 2016
1 parent f344ccd commit bdff3d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/character/detail/_character-detail.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ $coverWidth: 70vw;
width: 100%;
height: 100%;
&--not-found{
background-image: url('../img/image-not-available.png');
background-position: 47% 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
}
}
}
Expand Down
1 change: 1 addition & 0 deletions app/character/detail/character-detail.jade
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ ion-view.character.character__background(view-title='{{::vm.character.name}}' im
ion-slide-page(ng-repeat='comic in vm.comics track by comic.id' ui-sref='app.characterDetailComicDetail({comic:comic})')
div.character-comic-list__cover(ng-if='::comic.thumbnailUrl' img-cache ic-bg='{{::comic.thumbnailUrl}}')
div.character-comic-list__cover.character-comic-list__cover--not-found(ng-if='::!comic.thumbnailUrl')
div {{::comic.title}}

0 comments on commit bdff3d4

Please sign in to comment.