utterance / utterances

:crystal_ball: A lightweight comments widget built on GitHub issues
https://utteranc.es
MIT License
9.03k stars 579 forks source link

Place new comment box above comments #513

Open fatherjack opened 3 years ago

fatherjack commented 3 years ago

Is there any way to have the new comment box at the top of the comment stack, right under the last of the site content? This is much more accessible than at the bottom of what might be a long list of comments.

Originally posted by @fatherjack in https://github.com/utterance/utterances/issues/1#issuecomment-806920021

carlos-menezes commented 3 years ago

The new comment box is hardcoded at the bottom of the page. The components are appended to the page in the following order:

https://github.com/utterance/utterances/blob/1305da4212d72676ebe3f6a5e95eb111e118f9b1/src/utterances.ts#L42-L43

https://github.com/utterance/utterances/blob/1305da4212d72676ebe3f6a5e95eb111e118f9b1/src/utterances.ts#L45-L47 https://github.com/utterance/utterances/blob/1305da4212d72676ebe3f6a5e95eb111e118f9b1/src/utterances.ts#L74-L75

Thus, there's no way to have the new comment box at the top of the comment stack as of right now.