From 595e8abd686c7d555ff94668fb46604b92025956 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sun, 28 May 2023 03:34:18 +0200 Subject: Improve and fix bugs surrounding reactions (#24760) - Slightly decrease size of reaction buttons - Remove tooltip inside menu, it's obvious by the picture alone - Fix top menu triangle - Use `display: grid` to align icons in menu - Use regular tooltip for reaction users - Fix bug that deleted the reaction bar on clicking already reacted reaction in dropdown Screenshot 2023-05-17 at 00 03 42 Screenshot 2023-05-17 at 00 11 14 Screenshot 2023-05-17 at 00 29 30 Screenshot 2023-05-17 at 00 29 54 Screenshot 2023-05-17 at 00 12 20 --------- Co-authored-by: wxiaoguang Co-authored-by: Giteabot --- templates/repo/issue/view_content.tmpl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'templates/repo/issue/view_content.tmpl') diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 3c60eca671..77087e0a8f 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -27,7 +27,7 @@ {{svg (MigrationIcon .Repository.GetOriginalURLHostname)}} {{.Issue.OriginalAuthor}} - + {{.locale.Tr "repo.issues.commented_at" (.Issue.HashTag|Escape) $createdStr | Safe}} @@ -37,7 +37,7 @@ {{avatar $.Context .Issue.Poster 24}} - + {{template "shared/user/authorlink" .Issue.Poster}} {{.locale.Tr "repo.issues.commented_at" (.Issue.HashTag|Escape) $createdStr | Safe}} @@ -78,9 +78,7 @@ {{$reactions := .Issue.Reactions.GroupByType}} {{if $reactions}} -
- {{template "repo/issue/view_content/reactions" dict "ctxData" $ "ActionURL" (printf "%s/issues/%d/reactions" $.RepoLink .Issue.Index) "Reactions" $reactions}} -
+ {{template "repo/issue/view_content/reactions" dict "ctxData" $ "ActionURL" (printf "%s/issues/%d/reactions" $.RepoLink .Issue.Index) "Reactions" $reactions}} {{end}} -- cgit v1.2.3