[GH-277] Hide drag grip on content blocks in read-only mode (#294)
Fixes: #277
This commit is contained in:
parent
6fcafcebbb
commit
298141471c
1 changed files with 8 additions and 6 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue