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

This commit is contained in:
Kris 2019-07-24 10:08:59 -04:00 committed by Robin Ward
parent b3e5f7a8c6
commit 2ab022494a

View File

@ -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(