List of voters on mobile cuts off past a certain amount

When at least 8 people vote for a topic, one of the avatars start getting cut off on mobile when you tap on n votes to see who voted. For 9 or more people, entire avatars will sometimes not be visible at all (off the screen to the right).

Example:

I suspect it has something with a semi-recent change to core as I’m almost certain it wasn’t broken before an update and we weren’t very far behind.

6 Likes

On screens narrower than 550px, the .popup-menu width is being set to 100%. This is causing the voter list to get cut off.

I’m not sure if it’s the best solution, but adding the rule width: auto; to .voting-popup-menu fixes the issue.

5 Likes

I’ve made the width dynamic so it’ll fit the screen without overflowing.

https://github.com/discourse/discourse-voting/commit/924ab38fdf620e1c0829b95060713b182ce156c7

Thanks for reporting it!

3 Likes