Skip to content

Commit

Permalink
fix overlap issue
Browse files Browse the repository at this point in the history
  • Loading branch information
elbotho committed Sep 26, 2023
1 parent cf62536 commit 8c4095a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/serlo-editor/plugins/image/editor.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { faImages } from '@fortawesome/free-solid-svg-icons'
import clsx from 'clsx'
import { useEffect, useRef, useState } from 'react'

import type { ImageProps } from '.'
Expand Down Expand Up @@ -73,7 +74,13 @@ export function ImageEditor(props: ImageProps) {
/>
) : null}

<div className="z-[2] [&_img]:min-h-[4rem]" data-qa="plugin-image-editor">
<div
className={clsx(
'z-[2] [&_img]:min-h-[4rem]',
hasFocus && showInlineImageUrl ? 'relative' : ''
)}
data-qa="plugin-image-editor"
>
{hasFocus && showInlineImageUrl ? (
<div className="absolute left-side top-side z-[3]">
<InlineSrcControls {...props} urlInputRef={urlInputRef} />
Expand Down

0 comments on commit 8c4095a

Please sign in to comment.