Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
widgets: Make poll options clickable.
Karl Stolley5170a4ad2884
diff --git a/web/styles/widgets.css b/web/styles/widgets.cssindex ab60c0350f5..f8057358b1f 100644--- a/web/styles/widgets.css+++ b/web/styles/widgets.css@@ -156,7 +156,13 @@font-weight: 400;}- & span.poll-option {+ .poll-option-label {+ display: flex;+ gap: 5px;+ align-items: baseline;+ }++ .poll-option-text {font-weight: 600;/* Start with max-content, but allow optionsto shrink, so that voting names wrap comfortably. */diff --git a/web/templates/widgets/poll_widget_results.hbs b/web/templates/widgets/poll_widget_results.hbsindex 13d8db20005..3743a6440eb 100644--- a/web/templates/widgets/poll_widget_results.hbs+++ b/web/templates/widgets/poll_widget_results.hbs@@ -1,9 +1,11 @@{{#each options}}<li>- <button class="poll-vote {{#if current_user_vote}}current-user-vote{{/if}}" data-key="{{ key }}">- {{ count }}- </button>- <span class="poll-option">{{ option }}</span>+ <label class="poll-option-label">+ <button class="poll-vote {{#if current_user_vote}}current-user-vote{{/if}}" data-key="{{ key }}">+ {{ count }}+ </button>+ <span class="poll-option-text">{{ option }}</span>+ </label>{{#if names}}<span class="poll-names">({{ names }})</span>{{/if}}