mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 15:31:05 +08:00
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:
@@ -8,15 +8,18 @@
|
||||
"build": "vite build --mode production",
|
||||
"build-storybook": "storybook build",
|
||||
"dev": "vite --host",
|
||||
"lint": "eslint src --ext .ts,.tsx --report-unused-disable-directives --max-warnings 0",
|
||||
"lint": "eslint src --ext .ts,.tsx --report-unused-disable-directives",
|
||||
"prepare": "cd .. && husky web/.husky",
|
||||
"preview": "vite preview",
|
||||
"storybook": "storybook dev -p 6006",
|
||||
"test": "jest --no-cache --coverage"
|
||||
"test": "jest --no-cache --coverage",
|
||||
"type-check": "tsc --noEmit"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{js,jsx,ts,tsx,css,less,json}": [
|
||||
"prettier --write --ignore-unknown"
|
||||
"*.{css,less,json}": "prettier --write --ignore-unknown",
|
||||
"*.{js,jsx,ts,tsx}": [
|
||||
"prettier --write --ignore-unknown",
|
||||
"eslint"
|
||||
]
|
||||
},
|
||||
"overrides": {
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
)}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user