git.iko.soy/kchnrave.github.io
on master help sign in
Fixed image positioning in KR11
commitfe283bb844cf21b48f6ec60f2e235164b1b0ff20 authoriko <mail@iko.soy> dateMon 8 Dec 2025, 08:24 (1 year ago) parentb897702
1 file changed+13−2
unifiedsplit
app/Route/Events/Kr11.elm+13−2
app/Route/Events/Kr11.elm+13−2
@@ -109,9 +109,20 @@ view app shared =
109109 []
110110 ]
111111 , el [ height (px 16) ] none
112− , wrappedRow [ width fill, spaceEvenly, spacing 16 ]
112+ , wrappedRow
113+ [ centerX
114+ , spacing 16
115+ ]
113116 (List.map
114− (\n -> image [ height (maximum 300 shrink), width (maximum 300 shrink) ] { src = "/11/" ++ String.fromInt n ++ ".jpg", description = "" })
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+ ]
124+ { src = "/11/" ++ String.fromInt n ++ ".jpg", description = "" }
125+ )
115126 (List.range 1 7)
116127 )
117128 ]