Skip to content

Add quick-mention feature - #2556

Merged
fregante merged 6 commits into
masterfrom
quick-mention
Dec 9, 2019
Merged

fregante merged 6 commits into
masterfrom
quick-mention

Conversation

@fregante

@fregante fregante commented Nov 20, 2019 •

Copy link
Copy Markdown
Member

Closes #2532
Closes #1003

It appears only on hover

Screenshot

Only one problem: when the comment is near the top of the window, the hovercard appears below the avatar, covering our button.

Suggestions?

@sindresorhus

Copy link
Copy Markdown
Member

Clicking the reply button adds a space in front of the username. Can you trim it away?

@sindresorhus

Copy link
Copy Markdown
Member

Other than that, it works well 👌

@fregante

Copy link
Copy Markdown
Member Author

What about the overlap with the hovercard?

@sindresorhus

Copy link
Copy Markdown
Member

Put the reply button on the left side of the avatar instead?

@jerone

jerone commented Nov 22, 2019 •

Copy link
Copy Markdown
Contributor

Does hovering over the reply button also open the hovercard?

@fregante

Copy link
Copy Markdown
Member Author

Put the reply button on the left side of the avatar instead?

Then it doesn't fit when the window is too small

Does hovering over the reply button also open the hovercard?

Nope! So I guess that'd make it kinda ok as long as the user doesn't mistakenly hover the avatar on the way there.

<button
type="button"
className="rgh-quick-mention tooltipped tooltipped-e btn-link"
aria-label="Mention user in a new comment"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should say the user name ex: Mention @fregante in a new comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fregante should I open a new issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Button to @ mention in discussion Fix the mention autocomplete

4 participants