UX: Add expanded/collapsed class to post-controls (#7932)
This commit is contained in:
parent
b3e5f7a8c6
commit
2ab022494a
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue