Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Fix unequal column display height issue #8

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion fresh_tomatoes.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,24 @@
width: 100%;
height: 100%;
}
.container {
display: flex;
flex-wrap: wrap;
}
.movie-tile {
display: flex;
flex-direction: column;
margin-bottom: 20px;
padding-top: 20px;
}
.movie-tile:hover {
background-color: #EEE;
cursor: pointer;
}
.movie-poster {
margin-right: auto;
margin-left: auto;
}
.scale-media {
padding-bottom: 56.25%;
position: relative;
Expand Down Expand Up @@ -123,7 +133,7 @@
# A single movie entry html template
movie_tile_content = '''
<div class="col-md-6 col-lg-4 movie-tile text-center" data-trailer-youtube-id="{trailer_youtube_id}" data-toggle="modal" data-target="#trailer">
<img src="{poster_image_url}" width="220" height="342">
<img class="movie-poster" src="{poster_image_url}" width="220" height="342">
<h2>{movie_title}</h2>
</div>
'''
Expand Down