-
- Téléchargements
Improve polls: option lengths & redesign (#13257)
This commit redesign the polls and increases characters limit for the options from 25 to 50 characters, giving pollsters more freedom. Summarizing, the redesign is making the polls more adaptive for upcoming changes to the options characters limit: the bar, or a "chart", is now displayed separately from the option itself; vote check mark is moved next to the option text, making the percentages take less space. Option lengths are taken into account and text is wrapped to multiple lines if necessary to avoid overflow.
parent
a9a063c0
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Affichage de
- app/javascript/mastodon/components/poll.js 17 ajouts, 11 suppressionsapp/javascript/mastodon/components/poll.js
- app/javascript/mastodon/features/compose/components/poll_form.js 2 ajouts, 2 suppressions...ascript/mastodon/features/compose/components/poll_form.js
- app/javascript/styles/mastodon-light/diff.scss 1 ajout, 1 suppressionapp/javascript/styles/mastodon-light/diff.scss
- app/javascript/styles/mastodon/polls.scss 22 ajouts, 18 suppressionsapp/javascript/styles/mastodon/polls.scss
- app/validators/poll_validator.rb 1 ajout, 1 suppressionapp/validators/poll_validator.rb
- app/views/statuses/_poll.html.haml 5 ajouts, 5 suppressionsapp/views/statuses/_poll.html.haml
Chargement en cours
Veuillez vous inscrire ou vous se connecter pour commenter