I’m looking for a bit more direction on implementing a requested layout change for my instance. I’d like to move the avatar within the post body.
I believe I need to reopen the post-article
and post-body
widgets to change when to append the avatar.
from post-article
, I can see the avatar is being added prior to the body
https://github.com/discourse/discourse/blob/61b1f9c36be9b87e8ef5040cca41f93ac35396c2/app/assets/javascripts/discourse/widgets/post.js.es6#L568-L575
Is it possible to add the avatar into the post-body
instead?
https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/widgets/post.js.es6#L487-L493
so a solution would be to remove the this.attach("post-avatar", attrs)
from post-article
and add it as a part of post-body
?
...
let result = [this.attach("post-avatar", attrs)];
result.push(this.attach("post-meta-data", attrs));
...