Keyed images
This commit is contained in:
parent
fd43f85240
commit
04926c41fc
|
@ -125,13 +125,19 @@ playlistsView device playlists =
|
||||||
playlistView : Twitch.Playlist -> Element Core.Msg
|
playlistView : Twitch.Playlist -> Element Core.Msg
|
||||||
playlistView playlist =
|
playlistView playlist =
|
||||||
let
|
let
|
||||||
|
src =
|
||||||
|
Twitch.playlistMiniatureUrl playlist
|
||||||
|
|
||||||
image =
|
image =
|
||||||
Element.image
|
Keyed.el [ Element.width Element.fill, Element.height Element.fill ]
|
||||||
|
( src
|
||||||
|
, Element.image
|
||||||
[ Element.width Element.fill
|
[ Element.width Element.fill
|
||||||
, Element.height Element.fill
|
, Element.height Element.fill
|
||||||
, Element.inFront inFront
|
, Element.inFront inFront
|
||||||
]
|
]
|
||||||
{ description = "", src = Twitch.playlistMiniatureUrl playlist }
|
{ description = "", src = src }
|
||||||
|
)
|
||||||
|
|
||||||
length =
|
length =
|
||||||
List.length playlist.videos
|
List.length playlist.videos
|
||||||
|
@ -217,13 +223,19 @@ videoMiniature playlist video =
|
||||||
, Element.padding 5
|
, Element.padding 5
|
||||||
]
|
]
|
||||||
|
|
||||||
|
src =
|
||||||
|
Twitch.videoMiniatureUrl playlist video
|
||||||
|
|
||||||
image =
|
image =
|
||||||
Element.image
|
Keyed.el [ Element.width Element.fill, Element.height Element.fill ]
|
||||||
|
( src
|
||||||
|
, Element.image
|
||||||
[ Element.width Element.fill
|
[ Element.width Element.fill
|
||||||
, Element.height Element.fill
|
, Element.height Element.fill
|
||||||
, Element.inFront inFront
|
, Element.inFront inFront
|
||||||
]
|
]
|
||||||
{ description = "", src = Twitch.videoMiniatureUrl playlist video }
|
{ description = "", src = src }
|
||||||
|
)
|
||||||
|
|
||||||
label =
|
label =
|
||||||
formatTime video.duration
|
formatTime video.duration
|
||||||
|
|
Loading…
Reference in New Issue