Fix: 댓글 레이어 맨 앞으로
This commit is contained in:
parent
ec54881187
commit
66f2aea4ec
@ -359,30 +359,7 @@ export default function ImageCanvas() {
|
||||
<Layer>
|
||||
<Image image={image} />
|
||||
</Layer>
|
||||
<Layer>
|
||||
{comments.map((comment) => (
|
||||
<CommentLabel
|
||||
key={comment.id}
|
||||
comment={comment}
|
||||
updateComment={(updatedComment) => {
|
||||
updateCommentMutation.mutate({
|
||||
commentId: comment.id,
|
||||
commentData: {
|
||||
content: updatedComment.content,
|
||||
positionX: updatedComment.positionX,
|
||||
positionY: updatedComment.positionY,
|
||||
},
|
||||
});
|
||||
}}
|
||||
deleteComment={(commentId) => {
|
||||
deleteCommentMutation.mutate(commentId);
|
||||
}}
|
||||
toggleComment={(commentId) => {
|
||||
useCommentStore.getState().toggleComment(commentId);
|
||||
}}
|
||||
/>
|
||||
))}
|
||||
</Layer>
|
||||
|
||||
{project?.type !== 'classification' && (
|
||||
<Layer listening={drawState === 'pointer'}>
|
||||
{labels.map((label) =>
|
||||
@ -455,6 +432,30 @@ export default function ImageCanvas() {
|
||||
</Layer>
|
||||
)}
|
||||
|
||||
<Layer>
|
||||
{comments.map((comment) => (
|
||||
<CommentLabel
|
||||
key={comment.id}
|
||||
comment={comment}
|
||||
updateComment={(updatedComment) => {
|
||||
updateCommentMutation.mutate({
|
||||
commentId: comment.id,
|
||||
commentData: {
|
||||
content: updatedComment.content,
|
||||
positionX: updatedComment.positionX,
|
||||
positionY: updatedComment.positionY,
|
||||
},
|
||||
});
|
||||
}}
|
||||
deleteComment={(commentId) => {
|
||||
deleteCommentMutation.mutate(commentId);
|
||||
}}
|
||||
toggleComment={(commentId) => {
|
||||
useCommentStore.getState().toggleComment(commentId);
|
||||
}}
|
||||
/>
|
||||
))}
|
||||
</Layer>
|
||||
<Layer ref={dragLayerRef} />
|
||||
</Stage>
|
||||
<CanvasControlBar
|
||||
|
Loading…
Reference in New Issue
Block a user