Remove extra space surrounding code-editors.

This commit is contained in:
Dillon Kearns 2019-10-06 17:31:55 -07:00
parent 7e89615409
commit 539e37adf7

View File

@ -251,7 +251,11 @@ code snippet =
codeBlock : { body : String, language : Maybe String } -> Element msg codeBlock : { body : String, language : Maybe String } -> Element msg
codeBlock details = codeBlock details =
Html.node "code-editor" [ editorValue details.body ] [] Html.node "code-editor"
[ editorValue details.body
, Html.Attributes.style "white-space" "normal"
]
[]
|> Element.html |> Element.html
|> Element.el [ Element.width Element.fill ] |> Element.el [ Element.width Element.fill ]