fix: Formatting toolbar clipped on first comment in sidebar, closes #6841
This commit is contained in:
@@ -42,6 +42,7 @@ 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
|
||||
@@ -50,8 +51,9 @@ function Comments() {
|
||||
scrollable={false}
|
||||
>
|
||||
<Scrollable
|
||||
bottomShadow={!focusedComment}
|
||||
id="comments"
|
||||
overflow={hasMultipleComments ? undefined : "initial"}
|
||||
bottomShadow={!focusedComment}
|
||||
hiddenScrollbars
|
||||
topShadow
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user