-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Improve and fix bugs surrounding reactions #24760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
1d3b2a9
Improve and fix bug surrounding reactions
silverwind 4f76950
remove tooltip in popup, use hover color
silverwind cb79e73
add active color and tweak hover and active colors
silverwind 00ac319
more color tweaks
silverwind 2167ac6
fix reaction row deletion bug, convert to fetch
silverwind 202cf69
remove wrapper and restore old shitty css
silverwind f52ac71
css tweak
silverwind 15b9cb9
tweak size
silverwind 145a561
fix selector, add comment
silverwind 33361de
expand comment
silverwind 81047dc
fix dropdown width, add back title
silverwind e51920f
add aria-label
silverwind 5fe0a59
use muted links for emoji dropdown
silverwind d7af8e0
unify comment header muting
silverwind 1773a6a
refactor & simplify
wxiaoguang 68fe6a8
make hideOnClick=true for tooltip
wxiaoguang 57d0281
Merge branch 'main' into reaction
silverwind 6009b63
disable hideOnClick when element has data-clipboard-target
silverwind 4cea5c2
simplify
silverwind d923949
fix border radiuses
silverwind 520892b
fix double segment.reaction
silverwind 591ffb0
fix unreact from dropdown menu
silverwind 09981f1
Merge branch 'main' into reaction
GiteaBot a998593
revert "hide tooltip after menu gets hidden"
wxiaoguang 3441eed
Merge branch 'main' into reaction
GiteaBot 78094fb
remove header
silverwind cb83236
tweaks to edited menu
silverwind d4ccf6e
restore data-tooltip-content
silverwind 26ec23a
reaction color tweaks
silverwind aaa5636
border tweak
silverwind cb2ce4e
Merge branch 'main' into reaction
silverwind 8a91a4c
Fix misspell
silverwind 3ab817c
Merge branch 'main' into reaction
GiteaBot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
<div class="ui attached segment reactions" data-action-url="{{$.ActionURL}}"> | ||
{{range $key, $value := .Reactions}} | ||
<a class="ui label basic{{if $value.HasUser $.ctxData.SignedUserID}} primary{{end}}{{if not $.ctxData.IsSigned}} disabled{{end}}" data-title="{{$value.GetFirstUsers}}{{if gt ($value.GetMoreUserCount) 0}} {{$.ctxData.locale.Tr "repo.reactions_more" $value.GetMoreUserCount}}{{end}}" data-reaction-content="{{$key}}" data-action-url="{{$.ActionURL}}"> | ||
{{$hasReacted := $value.HasUser $.ctxData.SignedUserID}} | ||
<a role="button" class="ui label basic{{if $hasReacted}} primary{{end}}{{if not $.ctxData.IsSigned}} disabled{{end}} comment-reaction-button" | ||
silverwind marked this conversation as resolved.
Show resolved
Hide resolved
|
||
data-tooltip-content="{{$value.GetFirstUsers}}{{if gt ($value.GetMoreUserCount) 0}} {{$.ctxData.locale.Tr "repo.reactions_more" $value.GetMoreUserCount}}{{end}}" | ||
data-tooltip-placement="bottom-start" | ||
data-reaction-content="{{$key}}" data-has-reacted="{{$hasReacted}}"> | ||
<span class="reaction">{{ReactionToEmoji $key}}</span> | ||
<span class="reaction-count">{{len $value}}</span> | ||
</a> | ||
{{end}} | ||
{{if AllowedReactions}} | ||
{{template "repo/issue/view_content/add_reaction" dict "ctxData" $.ctxData "ActionURL" .ActionURL}} | ||
{{end}} | ||
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.