Various sidebar fixes (#5278

* fix: Right sidebar depth
Re-arrange order of document metadata

* fix: Comment reply not focused on 'Reply…' tap

* fix: Sidebar animation oddities on mobile/Safari
This commit is contained in:
Tom Moor
2023-04-30 15:42:05 -04:00
committed by GitHub
parent d8b4fef554
commit 20f3c55914
5 changed files with 23 additions and 26 deletions

View File

@@ -143,7 +143,7 @@ function CommentThread({
$focused={focused}
$recessed={recessed}
$dir={document.dir}
onClick={handleClickThread}
onPointerUp={handleClickThread}
>
{commentsInThread.map((comment, index) => {
const firstOfAuthor =
@@ -192,7 +192,7 @@ function CommentThread({
)}
</ResizingHeightContainer>
{!focused && !recessed && can.comment && (
<Reply onClick={() => setAutoFocus(true)}>{t("Reply")}</Reply>
<Reply onPointerDown={() => setAutoFocus(true)}>{t("Reply")}</Reply>
)}
</Thread>
);