about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorMélanie Chauvel <perso@hack-libre.org>2020-10-27 03:00:47 +0100
committerGitHub <noreply@github.com>2020-10-27 03:00:47 +0100
commit1d07f51039625c2eafa7eb0b1b6d5a7f8cf00e41 (patch)
tree12bafc9f07db29c4d5699311868efe1345d336b5 /app/views
parent0a8ab822e26180522d9ae8896435aba26d8f0b96 (diff)
Make visibility icon clickable as part of the time of a toot (#15053)
- Makes permalink to a toot more easily clickable
- Fix clicking between icon and time in fact clicking the display name
- Fix clicking slightly under time in fact clicking the display name
Diffstat (limited to 'app/views')
-rw-r--r--app/views/statuses/_simple_status.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/statuses/_simple_status.html.haml b/app/views/statuses/_simple_status.html.haml
index 336c1f2c8..7408749cc 100644
--- a/app/views/statuses/_simple_status.html.haml
+++ b/app/views/statuses/_simple_status.html.haml
@@ -1,10 +1,10 @@
 .status{ class: "status-#{status.visibility}" }
   .status__info
     = link_to ActivityPub::TagManager.instance.url_for(status), class: 'status__relative-time u-url u-uid', target: stream_link_target, rel: 'noopener noreferrer' do
+      %span.status__visibility-icon><
+        = visibility_icon status
       %time.time-ago{ datetime: status.created_at.iso8601, title: l(status.created_at) }= l(status.created_at)
     %data.dt-published{ value: status.created_at.to_time.iso8601 }
-    %span.status__visibility-icon
-      = visibility_icon status
 
     .p-author.h-card
       = link_to ActivityPub::TagManager.instance.url_for(status.account), class: 'status__display-name u-url', target: stream_link_target, rel: 'noopener noreferrer' do