Better sizes

This commit is contained in:
Thomas Forgione 2020-10-04 15:28:05 +02:00
parent 5872e50493
commit 2820a3a5e6
1 changed files with 3 additions and 3 deletions

View File

@ -228,16 +228,16 @@ videoMiniatureView zone playlist video =
videoInList : Time.Zone -> Twitch.Video -> Element Core.Msg videoInList : Time.Zone -> Twitch.Video -> Element Core.Msg
videoInList zone video = videoInList zone video =
Element.row [ Element.width Element.fill, Element.spacing 10 ] Element.row [ Element.width Element.fill, Element.spacing 10 ]
[ Element.el [ Element.width (Element.fillPortion 1) ] [ Element.el [ Element.width (Element.fillPortion 2) ]
(videoMiniature video) (videoMiniature video)
, Element.el [ Element.width (Element.fillPortion 2), Element.paddingXY 0 10, Element.alignTop ] , Element.el [ Element.width (Element.fillPortion 3), Element.paddingXY 0 10, Element.alignTop ]
(videoDescription zone video) (videoDescription zone video)
] ]
videoView : Time.Zone -> Twitch.Playlist -> Twitch.Video -> Element Core.Msg videoView : Time.Zone -> Twitch.Playlist -> Twitch.Video -> Element Core.Msg
videoView zone playlist video = videoView zone playlist video =
Element.row [ Element.padding 10, Element.width Element.fill, Element.spacing 20 ] Element.row [ Element.padding 10, Element.width Element.fill, Element.spacing 10 ]
[ Element.column [ Element.spacing 10, Element.width (Element.fillPortion 2) ] [ Element.column [ Element.spacing 10, Element.width (Element.fillPortion 2) ]
[ Element.image [ Element.width Element.fill ] [ Element.image [ Element.width Element.fill ]
{ description = "", src = Twitch.videoMiniatureUrl video } { description = "", src = Twitch.videoMiniatureUrl video }