nodebb-plugin-composer-default 11.0.2 → 11.0.4

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-composer-default",
3
- "version": "11.0.2",
3
+ "version": "11.0.4",
4
4
  "description": "Default composer for NodeBB",
5
5
  "main": "library.js",
6
6
  "repository": {
@@ -117,7 +117,7 @@ define('composer/formatting', [
117
117
  function generateBadgetHtml(btn) {
118
118
  let badgeHtml = '';
119
119
  if (btn.badge) {
120
- badgeHtml = `<span class="px-1 position-absolute top-0 start-100 translate-middle badge rounded text-bg-info"></span>`;
120
+ badgeHtml = `<span class="px-1 position-absolute top-0 start-100 translate-middle-x badge rounded text-bg-info"></span>`;
121
121
  }
122
122
  return badgeHtml;
123
123
  }
@@ -6,17 +6,17 @@
6
6
  {{{ else }}}
7
7
  {{{ if ((isTopicOrMain && ./visibility.main) || (!isTopicOrMain && ./visibility.reply)) }}}
8
8
  {{{ if ./dropdownItems.length }}}
9
- <li class="dropdown dropdown-left bottom-sheet {./visibility.class}" title="{tx(./title)}">
10
- <button class="btn btn-sm btn-link text-reset" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="{./title}">
9
+ <li class="dropdown dropdown-left bottom-sheet {./visibility.class}" title="{{tx(./title)}}">
10
+ <button class="btn btn-sm btn-link text-reset" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="{{tx(./title)}}">
11
11
  <i class="{./className}"></i>
12
12
  </button>
13
13
  <ul class="dropdown-menu p-1" role="menu">
14
14
  {{{ each ./dropdownItems }}}
15
15
  <li>
16
16
  <a href="#" data-format="{./name}" class="dropdown-item rounded-1 position-relative" role="menuitem">
17
- <i class="{./className} text-secondary"></i> {tx(./text)}
17
+ <i class="{./className} text-secondary"></i> {{tx(./text)}}
18
18
  {{{ if ./badge }}}
19
- <span class="px-1 position-absolute top-0 start-100 translate-middle badge rounded text-bg-info"></span>
19
+ <span class="px-1 position-absolute top-0 start-100 translate-middle-x badge rounded text-bg-info"></span>
20
20
  {{{ end }}}
21
21
  </a>
22
22
  </li>
@@ -24,11 +24,11 @@
24
24
  </ul>
25
25
  </li>
26
26
  {{{ else }}}
27
- <li title="{tx(./title)}" class="{./visibility.class}">
28
- <button data-format="{./name}" class="btn btn-sm btn-link text-reset position-relative" aria-label="{tx(./title)}">
27
+ <li title="{{tx(./title)}}" class="{./visibility.class}">
28
+ <button data-format="{./name}" class="btn btn-sm btn-link text-reset position-relative" aria-label="{{tx(./title)}}">
29
29
  <i class="{./className}"></i>
30
30
  {{{ if ./badge }}}
31
- <span class="px-1 position-absolute top-0 start-100 translate-middle badge rounded text-bg-info"></span>
31
+ <span class="px-1 position-absolute top-0 start-100 translate-middle-x badge rounded text-bg-info"></span>
32
32
  {{{ end }}}
33
33
  </button>
34
34
  </li>