on master help sign in
Change how some text is centered.
commitb5b87f25c0433dc35f984939c25426c33f5d1e41 authorevancz <info@elm-lang.org> dateMon 20 Aug 2012, 14:44 (14 years ago) parenta53dfde
1 file changed+1−1
Examples/elm-js/Pong/Pong.elm+1−1
Examples/elm-js/Pong/Pong.elm+1−1
@@ -296,7 +296,7 @@ gameState = foldp stepGame defaultGame input
296296scoreBoard w inPlay p1 p2 =
297297 let { code = text . monospace . toText
298298 ; stack top bottom = flow down [ code " ", code top, code bottom ]
299− ; msg = width w . box 2 . text . monospace $ toText "Press SPACE to begin"
299+ ; msg = width w . centeredText . monospace $ toText "Press SPACE to begin"
300300 ; score = width w . box 2 $ flow right
301301 [ stack "W" "S", rectangle 20 1
302302 , text . Text.height 4 $ show p1 ++ toText " " ++ show p2