fix: post dropdown opens all dropdowns in .Post-actions (#3675)

This commit is contained in:
David Wheatley 2022-11-16 23:21:57 +00:00 committed by GitHub
parent 2517bc0f70
commit fe5d543864
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ export default abstract class Post<CustomAttrs extends IPostAttrs = IPostAttrs>
const $actions = this.$('.Post-actions');
const $controls = this.$('.Post-controls');
$actions.toggleClass('open', $controls.hasClass('open'));
$actions.toggleClass('openWithin', $controls.hasClass('open'));
}
/**

View File

@ -322,7 +322,7 @@
vertical-align: top;
}
}
.Post:hover &, .Post:focus-within &, &.open {
.Post:hover &, .Post:focus-within &, &.openWithin {
opacity: 1;
}
}