Fix #120: Open thread when clicking on a CW spoiler text.
This commit is contained in:
parent
f064c5d8d6
commit
007179ba66
@ -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" ]
|
||||
|
Loading…
Reference in New Issue
Block a user