From 0b004efffab6775223c7921b099bd50b6e060f3b Mon Sep 17 00:00:00 2001 From: r Date: Thu, 27 Jan 2022 11:50:54 +0000 Subject: Add refresh button on timeline page --- static/style.css | 10 +++++----- templates/about.tmpl | 2 +- templates/notification.tmpl | 4 ++-- templates/thread.tmpl | 4 ++-- templates/timeline.tmpl | 5 ++++- 5 files changed, 14 insertions(+), 11 deletions(-) diff --git a/static/style.css b/static/style.css index 96c842f..4e2a196 100644 --- a/static/style.css +++ b/static/style.css @@ -517,16 +517,16 @@ img.emoji { margin-top: 6px; } -.notification-title-container { +.page-title-container { margin: 8px 0; } -.notification-text { - vertical-align: middle; +.page-refresh { + margin-right: 8px; } -.notification-refresh { - margin-right: 8px; +.notification-text { + vertical-align: middle; } .notification-read { diff --git a/templates/about.tmpl b/templates/about.tmpl index c0b8418..54316cf 100644 --- a/templates/about.tmpl +++ b/templates/about.tmpl @@ -94,7 +94,7 @@ C - Refresh thread page + Refresh timeline/thread page T diff --git a/templates/notification.tmpl b/templates/notification.tmpl index 8ed4dd6..a7f88a7 100644 --- a/templates/notification.tmpl +++ b/templates/notification.tmpl @@ -1,13 +1,13 @@ {{with .Data}} {{template "header.tmpl" (WithContext .CommonData $.Ctx)}} -
+
Notifications {{if and (not $.Ctx.AntiDopamineMode) (gt .UnreadCount 0)}} ({{.UnreadCount }}) {{end}} - refresh + refresh {{if .ReadID}}
diff --git a/templates/thread.tmpl b/templates/thread.tmpl index bb9f14f..d6a1c7d 100644 --- a/templates/thread.tmpl +++ b/templates/thread.tmpl @@ -1,8 +1,8 @@ {{with $s := .Data}} {{template "header.tmpl" (WithContext .CommonData $.Ctx)}} -
+
Thread - refresh + refresh
{{range .Statuses}} diff --git a/templates/timeline.tmpl b/templates/timeline.tmpl index bde050a..38659dc 100644 --- a/templates/timeline.tmpl +++ b/templates/timeline.tmpl @@ -1,6 +1,9 @@ {{with .Data}} {{template "header.tmpl" (WithContext .CommonData $.Ctx)}} -
{{.Title}}
+
+ {{.Title}} + refresh +
{{if eq .Type "remote"}} -- cgit v1.2.3