summaryrefslogtreecommitdiff
path: root/web/template
diff options
context:
space:
mode:
authorLibravatar f0x52 <f0x@cthu.lu>2022-10-03 20:35:43 +0200
committerLibravatar GitHub <noreply@github.com>2022-10-03 20:35:43 +0200
commit1a56352568c64e2b91c52b52579d3e7f53b7015c (patch)
treecf8ceee4e8eb8e9e1938122f83d9353feca09e92 /web/template
parent[frontend] change spacing of status, text always on it's own line, move statu... (diff)
downloadgotosocial-1a56352568c64e2b91c52b52579d3e7f53b7015c.tar.xz
[frontend] scroll to highlighted toot, improve highlight (#885)
Diffstat (limited to 'web/template')
-rw-r--r--web/template/thread.tmpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/template/thread.tmpl b/web/template/thread.tmpl
index 334bd8a9f..09f3e06c7 100644
--- a/web/template/thread.tmpl
+++ b/web/template/thread.tmpl
@@ -2,15 +2,15 @@
<main>
<div data-nosnippet class="thread">
{{range .context.Ancestors}}
- <div class="toot">
+ <div class="toot" id="{{.ID}}">
{{ template "status.tmpl" .}}
</div>
{{end}}
- <div class="toot expanded">
+ <div class="toot expanded" id="{{.status.ID}}">
{{ template "status.tmpl" .status}}
</div>
{{range .context.Descendants}}
- <div class="toot">
+ <div class="toot" id="{{.ID}}">
{{ template "status.tmpl" .}}
</div>
{{end}}