mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 13:03:45 +08:00
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
Block a user