Equal-Vote / star-server

STAR Voting is an upgrade to our current way of voting that allows voters to score candidates from 0 to 5. Ultimately, STAR Voting elects candidates who better represent the whole of the electorate. We are building a site that lets everyone from individuals to organizations use STAR Voting to host simple polls or run secure elections.
GNU Affero General Public License v3.0
19 stars 22 forks source link

Improve how we handle long candidate names in the results page #328

Open ArendPeter opened 1 year ago

ArendPeter commented 1 year ago

Adam detailed the problem here: https://docs.google.com/document/d/114IqR4Wx1u5EKgK_e7wF0VXTTMIPzTLHNiDOgg22qhU/edit

mikefranze commented 11 months ago

Could put a limit on candidate names, could also put ellipses after some number of candidates. This is how I implemented it in the add candidate form.

<Box sx={{ overflow: 'hidden', textOverflow: 'ellipsis', width: '100%', pl: 2 }}> <Typography variant="h4" component="h4" noWrap>{candidate.candidate_name}</Typography> </Box>

ArendPeter commented 6 months ago

I did a super quick fix for this on the following commits

7a7e08e92ecfc6a1bfe2a186eb33c1fd2fe49d98 ea5b796cf89ee25056034e40f05bfef1bfb34dd3 07aeeaea8b760581067ce6f216bc06adf4a1f777

It only applies to STAR results at the moment, it needs to be added to other results as well