fix: Unable to scroll until multiple comments (#7112)

* fix: Unable to scroll in comments
fix: Missing highlighted text on first comment while composing

* docs
This commit is contained in:
Tom Moor
2024-06-22 10:05:23 -04:00
committed by GitHub
parent d8f14377f8
commit eaab97dcbf
5 changed files with 43 additions and 27 deletions

View File

@@ -42,7 +42,6 @@ function Comments() {
.threadsInDocument(document.id)
.filter((thread) => !thread.isNew || thread.createdById === user.id);
const hasComments = threads.length > 0;
const hasMultipleComments = comments.inDocument(document.id).length > 1;
return (
<Sidebar
@@ -52,7 +51,6 @@ function Comments() {
>
<Scrollable
id="comments"
overflow={hasMultipleComments ? undefined : "initial"}
bottomShadow={!focusedComment}
hiddenScrollbars
topShadow