-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Enable reaction-avatars
on organization discussions
#6316
Conversation
@@ -58,7 +58,8 @@ const viewportObserver = new IntersectionObserver(changes => { | |||
}); | |||
|
|||
function showAvatarsOn(commentReactions: Element): void { | |||
const avatarLimit = arbitraryAvatarLimit - (commentReactions.children.length * approximateHeaderLength); | |||
const reactionTypes = select.all('.social-reaction-summary-item', commentReactions).length; | |||
const avatarLimit = arbitraryAvatarLimit - (reactionTypes * approximateHeaderLength); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The DOM was updated to use tool-tip
elements, but just on organization discussions apparently.
function observeCommentReactions(commentReactions: Element): void { | ||
commentReactions.classList.add('rgh-reactions'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Outdated since the new observer has been added
awaitDomReady: false, | ||
init, | ||
}, { | ||
include: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No separation needed since we dropped the comments listener attached to hasComments
@@ -74,35 +75,30 @@ function showAvatarsOn(commentReactions: Element): void { | |||
} | |||
} | |||
|
|||
// TODO [2022-12-18]: Drop `.comment-reactions-options` (GHE) | |||
const reactionsSelector = '.has-reactions :is(.js-comment-reactions-options, .comment-reactions-options):not(.rgh-reactions)'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Outdated, related:
reaction-avatars
doesn't work on Discussions #5485Org discussions
https://github.com/orgs/community/discussions/11202
Regular discussions
parcel-bundler/parcel#6490
PRs
#4119