diff --git a/src/Views.elm b/src/Views.elm index 94110e6..f6a702c 100644 --- a/src/Views.elm +++ b/src/Views.elm @@ -125,13 +125,19 @@ playlistsView device playlists = playlistView : Twitch.Playlist -> Element Core.Msg playlistView playlist = let + src = + Twitch.playlistMiniatureUrl playlist + image = - Element.image - [ Element.width Element.fill - , Element.height Element.fill - , Element.inFront inFront - ] - { description = "", src = Twitch.playlistMiniatureUrl playlist } + Keyed.el [ Element.width Element.fill, Element.height Element.fill ] + ( src + , Element.image + [ Element.width Element.fill + , Element.height Element.fill + , Element.inFront inFront + ] + { description = "", src = src } + ) length = List.length playlist.videos @@ -217,13 +223,19 @@ videoMiniature playlist video = , Element.padding 5 ] + src = + Twitch.videoMiniatureUrl playlist video + image = - Element.image - [ Element.width Element.fill - , Element.height Element.fill - , Element.inFront inFront - ] - { description = "", src = Twitch.videoMiniatureUrl playlist video } + Keyed.el [ Element.width Element.fill, Element.height Element.fill ] + ( src + , Element.image + [ Element.width Element.fill + , Element.height Element.fill + , Element.inFront inFront + ] + { description = "", src = src } + ) label = formatTime video.duration