From 52fe681ba21fd17622a35cb773d28e2376be1b0a Mon Sep 17 00:00:00 2001 From: f0x52 Date: Sun, 14 Aug 2022 19:22:13 +0200 Subject: [frontend] Sensitive media spoilers (#752) * sensitive media spoilers * small tweaks, use pointer-events (thanks @owl!) * allow hiding all media * add button roles * add tabindices * s/Show media/Show sensitive media/ * show hovering alt-text on hidden sensitive images Co-authored-by: tobi <31960611+tsmethurst@users.noreply.github.com> --- web/template/status.tmpl | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) (limited to 'web/template') diff --git a/web/template/status.tmpl b/web/template/status.tmpl index 2216b48d5..decad4764 100644 --- a/web/template/status.tmpl +++ b/web/template/status.tmpl @@ -7,7 +7,7 @@
{{.SpoilerText}} - +
{{end}}
@@ -15,16 +15,29 @@
{{with .MediaAttachments}} -
-- cgit v1.3