Open thread on status text click.

This commit is contained in:
Nicolas Perriault 2017-04-28 09:19:55 +02:00
parent 5fbfe8e7cb
commit 50f74848e8
No known key found for this signature in database
GPG Key ID: DA5E4C83904F7A2A
2 changed files with 3 additions and 1 deletions

View File

@ -127,6 +127,7 @@ body {
.status-text { .status-text {
margin-left: 65px; margin-left: 65px;
color: #efefef; color: #efefef;
cursor: pointer;
} }
.status-text a, .u-url, .status .mention, .hashtag, .tag { .status-text a, .u-url, .status .mention, .hashtag, .tag {
@ -141,6 +142,7 @@ body {
.thread-target .status-text { .thread-target .status-text {
font-size: 1.3em; font-size: 1.3em;
cursor: default;
} }
/* Status actions */ /* Status actions */

View File

@ -143,7 +143,7 @@ statusContentView : String -> Mastodon.Model.Status -> Html Msg
statusContentView context status = statusContentView context status =
case status.spoiler_text of case status.spoiler_text of
"" -> "" ->
div [ class "status-text" ] div [ class "status-text", onClick <| OpenThread status ]
[ div [] <| ViewHelper.formatContent status.content status.mentions [ div [] <| ViewHelper.formatContent status.content status.mentions
, attachmentListView context status , attachmentListView context status
] ]