mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
widgets: Make poll options clickable.
This commit is contained in:
@@ -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 options
|
||||
to shrink, so that voting names wrap comfortably. */
|
||||
|
@@ -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}}
|
||||
|
Reference in New Issue
Block a user