Fix audio being unclickable on textarea focus (#105)

* Fix audio being unclickable on textarea focus

* Small Readme fix
This commit is contained in:
David
2022-05-04 20:28:59 +02:00
committed by GitHub
parent 6fbf9fac4e
commit a8ed159bf4
2 changed files with 4 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ const TranslationArea: FC<Props> = ({ value, onChange, onSubmit, readOnly, audio
<Box
position="relative"
w="full"
isolation="isolate"
>
<Textarea
value={value}
@@ -44,6 +45,8 @@ const TranslationArea: FC<Props> = ({ value, onChange, onSubmit, readOnly, audio
position="absolute"
bottom={4}
right={4}
// Needed because the textarea stacks over on focus
zIndex={3}
>
{canCopy && (
<Tooltip label={hasCopied ? "Copied!" : "Copy to clipboard"}>