mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: when reopening collapsed composer, reset height (#26661)
This commit is contained in:
@@ -1373,6 +1373,13 @@ export default class ComposerService extends Service {
|
||||
composerModel.draftKey === opts.draftKey
|
||||
) {
|
||||
composerModel.set("composeState", Composer.OPEN);
|
||||
|
||||
// reset height set from collapse() state
|
||||
document.documentElement.style.setProperty(
|
||||
"--composer-height",
|
||||
this.get("model.composerHeight")
|
||||
);
|
||||
|
||||
if (!opts.action) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user