@@ -16,51 +16,52 @@ <h4>Highest rated movies</h4>
1616
1717 < div class ="sample-movies row ">
1818 < div *ngFor ="#movie of highestRatedMovies.slice(0, 10) " class ="library-movie col-xs-6 col-sm-4 col-md-3 col-lg-2 ">
19- < div class ="movie-poster-container " style =" padding:7px " >
20- < img src ={{movie.image}} class ="" style =" margin-bottom:2px; height:auto; width:100%; padding:4px "[routerLink] ="['/Movie', { movie: movie.imdbId }] ">
19+ < div class ="movie-poster-container ">
20+ < img src ={{movie.image}} class ="movie-image "[routerLink] ="['/Movie', { movie: movie.imdbId }] ">
2121 </ div >
2222 < div class ="movie-title-year ">
2323 < span > {{movie.title}} ({{movie.year}})</ span >
24- < div class ="ratings " style =" display:block " >
24+ < div class ="ratings ">
2525 < span class ="glyphicon {{ getAvgRating(movie.ratings) < 1 ? 'glyphicon-star-empty': 'glyphicon-star' }} "> </ span >
2626 < span class ="glyphicon {{ getAvgRating(movie.ratings) < 2 ? 'glyphicon-star-empty': 'glyphicon-star' }} "> </ span >
2727 < span class ="glyphicon {{ getAvgRating(movie.ratings) < 3 ? 'glyphicon-star-empty': 'glyphicon-star' }} "> </ span >
2828 < span class ="glyphicon {{ getAvgRating(movie.ratings) < 4 ? 'glyphicon-star-empty': 'glyphicon-star' }} "> </ span >
2929 < span class ="glyphicon {{ getAvgRating(movie.ratings) < 5 ? 'glyphicon-star-empty': 'glyphicon-star' }} "> </ span >
3030 </ div >
31+ < span class ="more-info "> {{ movie.ratings.length }} {{ movie.ratings.length === 1 ? 'rating' : 'ratings' }}</ span >
3132 </ div >
3233 </ div >
3334 </ div >
3435 < h4 > Movies with the most libraries</ h4 >
3536 < div class ="sample-movies row ">
3637 < div *ngFor ="#movie of mostLibsMovies.slice(0, 10) " class ="library-movie col-xs-6 col-sm-4 col-md-3 col-lg-2 ">
37- < div class ="movie-poster-container " style =" padding:7px " >
38- < img src ={{movie.image}} class ="" style =" margin-bottom:2px; height:auto; width:100%; padding:4px " [routerLink] ="['/Movie', { movie: movie.imdbId }] ">
38+ < div class ="movie-poster-container ">
39+ < img src ={{movie.image}} class ="movie-image " [routerLink] ="['/Movie', { movie: movie.imdbId }] ">
3940 </ div >
4041 < div class ="movie-title-year ">
4142 < span > {{movie.title}} ({{movie.year}})</ span >
42- < span style =" display:block "> Found in {{ movie.libraries.length }} {{ movie.libraries.length == 1 ? 'library' : 'libraries' }}</ span >
43+ < span class =" more-info "> Found in {{ movie.libraries.length }} {{ movie.libraries.length == 1 ? 'library' : 'libraries' }}</ span >
4344 </ div >
4445 </ div >
4546 </ div >
4647 < h4 > Movies with the most comments</ h4 >
4748 < div class ="sample-movies row ">
4849 < div *ngFor ="#movie of mostCommentsMovies.slice(0, 10) " class ="library-movie col-xs-6 col-sm-4 col-md-3 col-lg-2 ">
49- < div class ="movie-poster-container " style =" padding:7px " >
50- < img src ={{movie.image}} class ="" style =" margin-bottom:2px; height:auto; width:100%; padding:4px " [routerLink] ="['/Movie', { movie: movie.imdbId }] ">
50+ < div class ="movie-poster-container ">
51+ < img src ={{movie.image}} class ="movie-image " [routerLink] ="['/Movie', { movie: movie.imdbId }] ">
5152 </ div >
5253 < div class ="movie-title-year ">
5354 < span > {{movie.title}} ({{movie.year}})</ span >
54- < span style =" display:block "> {{movie.comments.length}} {{ movie.comments.length === 1 ? 'comment' : 'comments' }}</ span >
55+ < span class =" more-info "> {{movie.comments.length}} {{ movie.comments.length === 1 ? 'comment' : 'comments' }}</ span >
5556 </ div >
5657 </ div >
5758 </ div >
5859 </ div >
5960 < div class ="movies-search " *ngIf ="showSearchResults ">
6061 < div class ="movies-search-results row ">
6162 < div *ngFor ="#movie of results " class ="library-movie col-xs-6 col-sm-4 col-md-3 col-lg-2 ">
62- < div class ="movie-poster-container " style =" padding:7px " >
63- < img src ={{movie.image}} class ="" style =" margin-bottom:2px; height:auto; width:100%; padding:4px "[routerLink] ="['/Movie', { movie: movie.imdbId }] ">
63+ < div class ="movie-poster-container ">
64+ < img src ={{movie.image}} class ="movie-image "[routerLink] ="['/Movie', { movie: movie.imdbId }] ">
6465 </ div >
6566 < div class ="movie-title-year ">
6667 < span > {{movie.title}} ({{movie.year}})</ span >
0 commit comments