[WEB-3529] fix: fixed the comment create box position in common comments component (#6915)

This commit is contained in:
Akshita Goyal
2025-04-11 14:00:54 +05:30
committed by GitHub
parent bfc6ed839f
commit 4c688b1d25

View File

@@ -22,15 +22,7 @@ type TCommentsWrapper = {
};
export const CommentsWrapper: FC<TCommentsWrapper> = observer((props) => {
const {
entityId,
activityOperations,
comments,
getCommentById,
isEditingAllowed = true,
projectId,
sortOrder,
} = props;
const { entityId, activityOperations, comments, getCommentById, isEditingAllowed = true, projectId } = props;
// router
const { workspaceSlug: routerWorkspaceSlug } = useParams();
const workspaceSlug = routerWorkspaceSlug?.toString();
@@ -55,7 +47,7 @@ export const CommentsWrapper: FC<TCommentsWrapper> = observer((props) => {
return (
<div className="relative flex flex-col gap-y-2 h-full overflow-hidden">
{sortOrder === E_SORT_ORDER.DESC && renderCommentCreate}
{renderCommentCreate}
<div className="flex-grow py-4 overflow-y-auto">
{comments?.map((data, index) => {
let comment;
@@ -79,7 +71,6 @@ export const CommentsWrapper: FC<TCommentsWrapper> = observer((props) => {
);
})}
</div>
{sortOrder === E_SORT_ORDER.ASC && renderCommentCreate}
</div>
);
});