nodebb-plugin-poll 3.1.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-poll",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "NodeBB Poll Plugin",
5
5
  "main": "library.js",
6
6
  "scripts": {
@@ -1,11 +1,11 @@
1
1
  <!-- BEGIN poll.options -->
2
2
  <div class="poll-result" data-poll-option-id="{poll.options.id}">
3
- <strong>{poll.options.title}</strong>
4
- <small class="pull-right">
5
- <a class="poll-result-votecount" href="#">
3
+ <div class="d-flex justify-content-between mb-1">
4
+ <strong>{poll.options.title}</strong>
5
+ <a class="poll-result-votecount small" href="#">
6
6
  <span>{poll.options.voteCount}</span> [[poll:votes]]
7
7
  </a>
8
- </small>
8
+ </div>
9
9
  <div class="progress">
10
10
  <div class="progress-bar poll-result-progressbar" role="progressbar" aria-valuenow="{poll.options.percentage}" aria-valuemin="0" aria-valuemax="100" style="width: {poll.options.percentage}%;">
11
11
  <span><span class="percent">{poll.options.percentage}</span>%</span>
@@ -1,4 +1,4 @@
1
- <form role="form" class="poll-voting-form">
1
+ <form role="form" class="poll-voting-form mb-3 d-flex flex-column gap-3">
2
2
  <!-- BEGIN poll.options -->
3
3
  <div class="poll-view-option {poll.optionType}" data-poll-option-id="{poll.options.id}">
4
4
  <label>
@@ -1,7 +1,7 @@
1
1
  <div class="poll-view" data-poll-id="{poll.info.pollId}">
2
2
  <div class="card">
3
3
  <div class="card-header">
4
- <h3 class="card-title">{poll.settings.title}</h3>
4
+ <h5 class="card-title mb-0">{poll.settings.title}</h5>
5
5
  <div class="btn-group float-end hidden">
6
6
  <a href="#" class="poll-button-edit">
7
7
  <span class="fa fa-pencil"></span>
@@ -13,7 +13,7 @@
13
13
  <div class="poll-view-voting <!-- IF poll.hasVoted -->hidden<!-- ENDIF poll.hasVoted -->">
14
14
  <!-- IMPORT poll/view/voting.tpl -->
15
15
  </div>
16
- <div class="poll-view-results <!-- IF !poll.hasVoted -->hidden<!-- ENDIF !poll.hasVoted -->">
16
+ <div class="poll-view-results d-flex flex-column gap-3 mb-3 <!-- IF !poll.hasVoted -->hidden<!-- ENDIF !poll.hasVoted -->">
17
17
  <!-- IMPORT poll/view/results.tpl -->
18
18
  </div>
19
19