nodebb-theme-harmony 1.0.7 → 1.0.9

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-theme-harmony",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.0.0"
6
6
  },
package/public/harmony.js CHANGED
@@ -251,11 +251,12 @@ $(document).ready(function () {
251
251
  if (count > 1) {
252
252
  const listEls = document.querySelectorAll(`[component="${type}/list"]`);
253
253
  listEls.forEach((listEl) => {
254
- const placeholder = listEl.querySelector('li');
255
-
256
- for (let x = 0; x < count - 1; x++) {
257
- const cloneEl = placeholder.cloneNode(true);
258
- listEl.insertBefore(cloneEl, placeholder);
254
+ const placeholder = listEl.querySelector('*');
255
+ if (placeholder) {
256
+ for (let x = 0; x < count - 1; x++) {
257
+ const cloneEl = placeholder.cloneNode(true);
258
+ listEl.insertBefore(cloneEl, placeholder);
259
+ }
259
260
  }
260
261
  });
261
262
  }
@@ -22,7 +22,7 @@
22
22
  <!-- IMPORT partials/chats/messages.tpl -->
23
23
  </ul>
24
24
  <div component="chat/composer" class="d-flex flex-column flex-md-row gap-2 border-top pt-2 align-items-start align-items-md-end">
25
- <div class="w-100 flex-grow-1 position-relative input-group">
25
+ <div class="w-100 flex-grow-1 flex-nowrap position-relative input-group">
26
26
  <button component="chat/upload/button" class="btn btn-outline-primary btn-sm align-self-stretch px-3 px-md-2" type="button"><i class="fa fa-fw fa-upload"></i></button>
27
27
  <div class="flex-grow-1 position-relative">
28
28
  <textarea component="chat/input" placeholder="[[modules:chat.placeholder.mobile]]" class="form-control chat-input mousetrap rounded-0" style="height:0;max-height:30vh;resize:none;"></textarea>