summaryrefslogtreecommitdiff
path: root/elm/Lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-12-05 19:26:39 +0100
committerYorhel <git@yorhel.nl>2019-12-05 19:27:15 +0100
commit6487d1e89b14a4c85bb47c03fbe4d7e2f37e73d3 (patch)
treecd010ce4994048c379abf6ef256543b63f8c9f3a /elm/Lib
parent0c97101f1de3025de06a5f516811b9b7844a2abc (diff)
v2rw: Convert thread reply form to Elm
So we can apply the new preview functionality. I got rid of the "Go advanced" button, because there's really nothing advanced about it.
Diffstat (limited to 'elm/Lib')
-rw-r--r--elm/Lib/TextPreview.elm2
1 files changed, 1 insertions, 1 deletions
diff --git a/elm/Lib/TextPreview.elm b/elm/Lib/TextPreview.elm
index 8c9e3287..2d565e5f 100644
--- a/elm/Lib/TextPreview.elm
+++ b/elm/Lib/TextPreview.elm
@@ -74,7 +74,7 @@ view name model cmdmap width attr =
div [ class "textpreview", style "width" (String.fromInt width ++ "px") ]
[ p (class "head" :: (if model.data == "" then [class "invisible"] else []))
[ case model.state of
- Api.Loading -> div [ class "spinner" ] []
+ Api.Loading -> span [ class "spinner" ] []
Api.Error _ -> b [ class "grayedout" ] [ text "Error loading preview. " ]
Api.Normal -> text ""
, if display