nodebb-plugin-composer-default 10.2.8 → 10.2.10

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": "10.2.8",
3
+ "version": "10.2.10",
4
4
  "description": "Default composer for NodeBB",
5
5
  "main": "library.js",
6
6
  "repository": {
@@ -71,12 +71,11 @@ define('composer/resize', ['taskbar'], function (taskbar) {
71
71
  var rect = elem.getBoundingClientRect();
72
72
  content.style.paddingBottom = (rect.bottom - rect.top).toString() + 'px';
73
73
  } else {
74
- postContainer.removeAttr('style');
74
+ elem.style.top = 0;
75
75
  content.style.paddingBottom = 0;
76
76
  }
77
77
 
78
78
  postContainer.ratio = ratio;
79
- elem.style.visibility = 'visible';
80
79
 
81
80
  taskbar.updateActive(postContainer.attr('data-uuid'));
82
81
  }
@@ -621,8 +621,11 @@ define('composer', [
621
621
  }
622
622
 
623
623
  composer.active = post_uuid;
624
+ const postContainer = $('.composer[data-uuid="' + post_uuid + '"]');
625
+ postContainer.css('visibility', 'visible');
624
626
  $(window).trigger('action:composer.activate', {
625
627
  post_uuid: post_uuid,
628
+ postContainer: postContainer,
626
629
  });
627
630
  }
628
631
 
@@ -326,7 +326,7 @@
326
326
  }
327
327
  }
328
328
 
329
- @include media-breakpoint-up(sm) {
329
+ @include media-breakpoint-up(lg) {
330
330
  html.composing {
331
331
  .composer {
332
332
  left: 15%;