Default to list view when more than 10 date time options
⚠️ This issue respects the following points: ⚠️
- [X] I agree to follow Nextcloud's Code of Conduct.
Describe the goal you'd like to achieve
As a poll participant, I want to be able to easily see the poll option on my screen, because it avoids options being missed if the vertical scroll bar which appears on grid view with 11+ options on a 1080p screen isn't spotted, also because most computer mouses don't have a vertical scroll wheel.
Describe possible solutions
- Detect if a vertical scroll bar will occur and switch to list view dynamically - including if the user resizes the window after page load.
- If there are more than 10 items in a date poll default to list view.
- Allow the poll owner to set the default view for their poll.
Additional context
This seems to partly exist already, as mobile devices default to list view.
Partly related to #1136
Thinking about it, choosing the view mode based on the number of option can't be right. Another one wants 11, another one always prefers the table view, because he is aware of shift-scroll, etc.
So sorry. The view mode will not rely on the number of entities used in polls. This is bad UX.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.