1
0
Fork 0

Fix #120: Open thread when clicking on a CW spoiler text.

This commit is contained in:
Nicolas Perriault 2017-05-02 14:55:59 +02:00
parent f064c5d8d6
commit 007179ba66
No known key found for this signature in database
GPG Key ID: DA5E4C83904F7A2A
1 changed files with 5 additions and 1 deletions

View File

@ -164,7 +164,11 @@ statusContentView context status =
"spoiler" ++ (toString status.id) ++ context
in
div [ class "status-text spoiled" ]
[ div [ class "spoiler" ] [ text status.spoiler_text ]
[ div
[ class "spoiler"
, onClickWithStop <| OpenThread status
]
[ text status.spoiler_text ]
, input [ type_ "checkbox", id statusId, class "spoiler-toggler" ] []
, label [ for statusId ] [ text "Reveal content" ]
, div [ class "spoiled-content" ]