UX: Add expanded/collapsed class to post-controls (#7932)

UX: Add expanded/collapsed class to post-controls (#7932)

diff --git a/app/assets/javascripts/discourse/widgets/post-menu.js.es6 b/app/assets/javascripts/discourse/widgets/post-menu.js.es6
index 102225e..8739675 100644
--- a/app/assets/javascripts/discourse/widgets/post-menu.js.es6
+++ b/app/assets/javascripts/discourse/widgets/post-menu.js.es6
@@ -484,7 +484,14 @@ export default createWidget("post-menu", {
       postControls.push(this.attach("post-admin-menu", attrs));
     }
 
-    const contents = [h("nav.post-controls.clearfix", postControls)];
+    const contents = [
+      h(
+        "nav.post-controls.clearfix" +
+          (this.state.collapsed ? ".collapsed" : ".expanded"),
+        postControls
+      )
+    ];
+
     if (state.likedUsers.length) {
       const remaining = state.total - state.likedUsers.length;
       contents.push(

GitHub sha: 2ab02249