UX: Improve composer presence-display positioning (#15235)

Previously the discourse-presence plugin was using a `position: absolute` hack to display the 'replying...' users in the top right of the composer. This commit adds a more suitable plugin outlet, and updates the discourse-presence styling so it slots into the flex-box layout at the top of the composer
This commit is contained in:
David Taylor
2021-12-08 16:18:49 +00:00
committed by GitHub
parent d8fe0f4199
commit a6230b8138
6 changed files with 19 additions and 33 deletions

View File

@ -193,12 +193,7 @@ acceptance("Discourse Presence Plugin", function (needs) {
await click("#topic-footer-buttons .btn.create");
assert.ok(exists(".d-editor-input"), "the composer input is visible");
const avatarSelector =
".composer-fields-outlet.presence .presence-avatars .avatar";
assert.ok(
exists(".composer-fields-outlet.presence"),
"includes the presence component"
);
const avatarSelector = ".composer-fields .presence-avatars .avatar";
assert.strictEqual(count(avatarSelector), 0, "no avatars displayed");
await joinChannel("/discourse-presence/reply/280", {