Skip to content

Commit 87a6f28

Browse files
committed
graphql demo: added max height to images
1 parent 061197b commit 87a6f28

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/demos/movies/index.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,14 @@
7070
border: 1px solid #ccc;
7171
border-radius: 5px;
7272
}
73-
/* Loading Indicator Styles */
73+
74+
.thumbnail {
75+
display: block;
76+
margin-left: auto;
77+
margin-right: auto;
78+
max-height: 300px;
79+
}
80+
7481
.loading-indicator {
7582
display: none;
7683
font-size: 18px;
@@ -215,6 +222,7 @@ <h1 style="display: inline; margin-right: 20px;">Movie Browser</h1>
215222
if (movie.depiction) {
216223
const movieImage = document.createElement('img');
217224
movieImage.src = movie.depiction;
225+
movieImage.class = "thumbnail";
218226
movieCard.appendChild(movieImage);
219227
}
220228

0 commit comments

Comments
 (0)