FIX: hides dropdown if no actions available

FIX: hides dropdown if no actions available

diff --git a/assets/javascripts/discourse/widgets/more-dropdown.js.es6 b/assets/javascripts/discourse/widgets/more-dropdown.js.es6
index a3d4cd9..cda534b 100644
--- a/assets/javascripts/discourse/widgets/more-dropdown.js.es6
+++ b/assets/javascripts/discourse/widgets/more-dropdown.js.es6
@@ -28,6 +28,13 @@ export default createWidget("more-dropdown", {
     }}
   `,
 
+  buildClasses(attrs) {
+    const content = this._buildContent(attrs);
+    if (!content.length) {
+      return ["has-no-actions"];
+    }
+  },
+
   _buildContent(attrs) {
     const content = [];
 
@@ -76,6 +83,7 @@ export default createWidget("more-dropdown", {
         param: attrs.postEventId
       });
     }
+
     return content;
   }
 });
diff --git a/assets/stylesheets/common/discourse-post-event.scss b/assets/stylesheets/common/discourse-post-event.scss
index 7e5408c..e474ab4 100644
--- a/assets/stylesheets/common/discourse-post-event.scss
+++ b/assets/stylesheets/common/discourse-post-event.scss
@@ -48,6 +48,10 @@
       align-self: flex-start;
       margin-top: 1em;
 
+      &.has-no-actions {
+        display: none;
+      }
+
       .widget-dropdown {
         .widget-dropdown-header {
           .d-icon {

GitHub sha: 31a8524a