Poll result user card not showing on hover

AI-generated summary

The discussion revolves around a missing user card hover functionality on poll results in Discourse. ncaming215 reports that hovering over a user avatar in poll results no longer displays the user card, which is causing issues during a mock draft. merefield clarifies that Discourse’s convention is to require a click, not a hover, to display the user card, and mentions a third-party component that enables hover functionality but may cause performance issues. Arkshine investigates and finds that the issue is due to the forum running an outdated version of Discourse (v3.3.3), and notes that the functionality was fixed in v3.4.0 by a commit from Robert here. ncaming215 humorously acknowledges the irony of the situation. merefield reiterates the importance of updating to the latest stable version before reporting issues.

This could be me, but I recall being able to hover over a user avatar in the “Results” of a poll, and you’d get the expected response: the user card in a modal. Currently, that’s not happening. We’re running a large mock draft, and this has become an unexpected pain for the admins who are tracking votes.

I could be wrong but that doesn’t sound like Discourse convention at all. The convention is you need to click an avatar to bring up the User Card.

Perhaps you were thinking of this Component?

https://github.com/discourse/discourse-user-card-on-hover

(the downside of which appears to be that it causes a lot of 429-itis! :thinking: )

3 Likes

Click doesn’t work either. Sorry, should’ve linked to this earlier. Poll Pick 60 Poll - Lions Den Mock - The Den

On my local with the latest Discourse version, it works as expected.
Indeed, nothing happens on your forum. Looking at the HTML, it misses the user card link, e.g.:

<a data-user-card="Arkshine"> <img.../> </a>

From what I see, you’re using Discourse v3.3.3.
The latest version from the stable branch is 3.4.2.
I would try to upgrade first.


Edit:

I can see it has been fixed here in v3.4.0+ by Robert:
https://github.com/discourse/discourse/commit/647294ad7bfe421b031ae9464a60516f2714c7c1

2 Likes

That … is really, really funny.

1 Like

Indeed. Always consider updating to at least latest stable before considering something a bug.

And please note that by “hoverable” that is not refering to full User Cards (without that component). That just makes sure there is a username title.

2 Likes