Skip to content

Commit

Permalink
Fix more menu on first comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gbalint committed Jan 3, 2024
1 parent 7cd24e9 commit 9d62c53
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion editor/src/components/canvas/controls/comment-popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,11 @@ const HeaderComment = React.memo(
({ comment, enabled }: { comment: CommentData; enabled: boolean }) => {
const collabs = useStorage((storage) => storage.collaborators)
const user = getCollaboratorById(collabs, comment.userId)

if (!enabled) {
return null
}

return (
<div
style={{
Expand All @@ -576,7 +581,6 @@ const HeaderComment = React.memo(
backgroundColor: 'white',
zIndex: 1,
boxShadow: UtopiaStyles.shadowStyles.highest.boxShadow,
opacity: enabled ? 1 : 0,
transition: 'all 100ms linear',
minHeight: 67,
transform: 'scale(1.01)',
Expand Down

0 comments on commit 9d62c53

Please sign in to comment.