Fix editor toolbar blocking things

This commit is contained in:
Gregory Schier
2024-01-15 21:44:53 -08:00
parent 7047df4f7e
commit 33374eefc7
2 changed files with 6 additions and 3 deletions

View File

@@ -224,7 +224,10 @@ const _Editor = forwardRef<EditorView | undefined, EditorProps>(function Editor(
space={1}
alignItems="center"
justifyContent="end"
className="absolute bottom-2 left-0 right-0"
className={classNames(
'absolute bottom-2 left-0 right-0',
'pointer-events-none', // No pointer events so we don't block the editor
)}
>
{format && (
<IconButton

View File

@@ -326,10 +326,10 @@ const FormRow = memo(function FormRow({
<div
className={classNames(
'py-2 h-7 w-3 flex items-center',
'justify-center opacity-0 hover:opacity-100',
'justify-center opacity-0 group-hover:opacity-70',
)}
>
<Icon icon="drag" className="pointer-events-none" />
<Icon icon="gripVertical" className="pointer-events-none" />
</div>
) : (
<span className="w-3" />