[GH-277] Hide drag grip on content blocks in read-only mode (#294)

Fixes: #277
This commit is contained in:
Johannes Marbach 2021-04-19 11:36:07 +02:00 committed by GitHub
parent 6fcafcebbb
commit 298141471c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,12 +106,14 @@ const ContentBlock = React.memo((props: Props): JSX.Element => {
</Menu>
</MenuWrapper>
}
<div
ref={gripRef}
className='dnd-handle'
>
<GripIcon/>
</div>
{!props.readonly &&
<div
ref={gripRef}
className='dnd-handle'
>
<GripIcon/>
</div>
}
</div>
<ContentElement
block={block}