Fix: The placeholder in PromptEditor is obscured. (#14179)

### What problem does this PR solve?

Fix: The placeholder in PromptEditor is obscured.
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2026-04-17 21:02:41 +08:00
committed by GitHub
parent 22c6648348
commit 3a4d17cb0d
2 changed files with 10 additions and 7 deletions

View File

@@ -184,7 +184,7 @@ export const PromptEditor = forwardRef(function PromptEditor(
onChange,
onBlur,
placeholder,
showToolbar,
showToolbar = true,
multiLine = true,
enablePathQueryAutoMerge = true,
extraOptions,
@@ -237,10 +237,10 @@ export const PromptEditor = forwardRef(function PromptEditor(
placeholder={
<div
className={cn(
'-z-10 absolute top-4 left-2 text-text-disabled pointer-events-none',
'-z-10 absolute top-1 left-2 text-text-disabled pointer-events-none',
{
'truncate max-w-[calc(100%-4rem)]': !multiLine,
'translate-y-9': multiLine,
'top-12': showToolbar,
},
)}
>