💄 Don’t distort movie images when horizontal space is too tight
[rhynodge.git] / src / main / kotlin / net / pterodactylus / rhynodge / filters / webpages / savoy / MovieState.kt
index 8d84b4f..cdec289 100644 (file)
@@ -38,7 +38,7 @@ class MovieState(@JsonProperty val movies: Collection<Movie>, val newMovies: Col
                                        +"section.new-movies > .label { font-family: Impact, sans-serif; background-color: black; padding: 0.5ex; font-size: 200%; color: #ffffee; font-weight: bold; }"
                                        +"section.new-movies ul { padding: 0; margin: 0; }"
                                        +"section.new-movies li.movie { list-style: none; display: grid; margin: 1ex 1ex 1ex 0ex; grid-template-rows: 353px; grid-template-columns: 250px auto; }"
-                                       +"section.new-movies li.movie img { grid-area: 1/1/2/2 }"
+                                       +"section.new-movies li.movie img { grid-area: 1/1/2/2; width: 100%; height: 100%; }"
                                        +"section.new-movies li.movie .text { color: white; text-shadow: 2px 2px black; font-weight: bold; font-size: 150%; display: flex; flex-direction: column; justify-content: end; grid-area: 1/1/2/2; }"
                                        +"section.new-movies li.movie .text .name { padding: 1ex; font-size: 120%; }"
                                        +"section.new-movies li.movie .description { padding: 1ex; }"
@@ -46,7 +46,7 @@ class MovieState(@JsonProperty val movies: Collection<Movie>, val newMovies: Col
                                        +"section.daily-programmes ol { padding: 0; }"
                                        +"section.daily-programmes li { list-style: none; }"
                                        +"section.daily-programmes li.day > .label { font-family: Impact, sans-serif; background-color: black; padding: 0.5ex; font-size: 200%; color: #ffffee; font-weight: bold; }"
-                                       +"section.daily-programmes li .performances { display: flex; border-top: 1ex; }"
+                                       +"section.daily-programmes li .performances { border-top: 1ex; }"
                                        +"section.daily-programmes li.performance { width: 250px; height: 353px; display: inline-block; margin: 1ex 1ex 1ex 0ex; position: relative; }"
                                        +"section.daily-programmes li.performance a { width: 100%; height: 100%; display: block; text-decoration: none; }"
                                        +"section.daily-programmes li.performance a img { width: 100%; height: 100%; display: block; position: absolute; z-index: -1; }"