git.iko.soy/kchnrave.github.io
on master help sign in
Fixed image positioning in KR11
fe283bbiko
app/Route/Events/Kr11.elm+13−2
unifiedsplit
@@ -109,9 +109,20 @@ view app shared =
109 []
109 []
110 ]
110 ]
111 , el [ height (px 16) ] none
111 , el [ height (px 16) ] none
112− , wrappedRow [ width fill, spaceEvenly, spacing 16 ]
112+ , wrappedRow
113+ [ centerX
114+ , spacing 16
115+ ]
113 (List.map
116 (List.map
117+ (\n ->
118+ image
119+ [ height (maximum 300 shrink)
120+ , width (maximum 300 shrink)
121+ , htmlAttribute (Html.Attributes.style "marginLeft" "auto")
122+ , htmlAttribute (Html.Attributes.style "marginRight" "auto")
123+ ]
114− (\n -> image [ height (maximum 300 shrink), width (maximum 300 shrink) ] { src = "/11/" ++ String.fromInt n ++ ".jpg", description = "" })
124+ { src = "/11/" ++ String.fromInt n ++ ".jpg", description = "" }
125+ )
115 (List.range 1 7)
126 (List.range 1 7)
116 )
127 )
117 ]
128 ]