Option to move accepted answer to the top

Ok, let’s try this again :wink:

This is what I’ve got working, which I’m 99.9% (ok, maybe 70% :laughing: ) sure is what is described above:

Screenshot

Then you can click the header, and it expands to the full post:

Screenshot

A couple of questions/issues:

  1. Should we display solved by david in post #2 in the header, or should it look like other quotes and just say david along with an avatar. If the latter, how do we indicate it is indeed the answer.
  2. Currently, if you go and change the “solution” then it causes the page to jump around all over the place because the height of the first post is changing. This happens with the discourse-solved plugin right now, but it’s not really noticeable since it’s only 1 line of text. I’m not really sure of a solution for this… Either we don’t update it live (so you have to reload the topic to see the quote), or have some kind of placeholder when the topic isn’t solved.

A possible solution to point 2 could look like this:



But I’m not a massive fan of this idea…

Anyone have any better ideas?

(Work-in-progress is here)

2 « J'aime »