Polls don't fit on mobile


(Dean Taylor) #1

Polls on mobile seem to wide causing additional horizontal scrolling


(Jeff Atwood) #2

Yes, @zogstrip is aware of this and will switch to top-bottom rendering rather than left-right for polls on mobile.


(RĂ©gis Hanol) #3

Just pushed a fix for mobiles :whale2:

https://github.com/discourse/discourse/commit/875a013ec76e7ce0cbb95a61223cbbd16ed31d4a


(Dean Taylor) #4

Could you remove the height style on .poll-container on both desktop and mobile?

As it is now:

With height style removed:

Perhaps add the surrounding box in on mobile to “hold the poll” functionality together?


Poll height on mobile with image content
(RĂ©gis Hanol) #5

This topic was automatically closed after 12 hours. New replies are no longer allowed.


(RĂ©gis Hanol) #6

You’re right, I forgot to leave the borders on mobile. It’s now fixed :bird:

https://github.com/discourse/discourse/commit/c2ffe255c30c2d86fd871f8a7f29caf2c3cef272

As for the height, it’s there to make sure the height of the poll doesn’t change between the views. I can’t reproduce your issue though.


Poll height on mobile with image content