mirror of
https://git.mirrors.martin98.com/https://github.com/bytedance/deer-flow
synced 2025-08-20 13:19:10 +08:00
fix: editing plan style (#261)
This commit is contained in:
parent
fcbc7f1118
commit
7e9fbed918
@ -81,7 +81,7 @@ export function InputBox({
|
|||||||
{feedback && (
|
{feedback && (
|
||||||
<motion.div
|
<motion.div
|
||||||
ref={feedbackRef}
|
ref={feedbackRef}
|
||||||
className="bg-background border-brand absolute top-0 left-0 mt-3 ml-2 flex items-center justify-center gap-1 rounded-2xl border px-2 py-0.5"
|
className="bg-background border-brand absolute top-0 left-0 mt-2 ml-4 flex items-center justify-center gap-1 rounded-2xl border px-2 py-0.5"
|
||||||
initial={{ opacity: 0, scale: 0 }}
|
initial={{ opacity: 0, scale: 0 }}
|
||||||
animate={{ opacity: 1, scale: 1 }}
|
animate={{ opacity: 1, scale: 1 }}
|
||||||
exit={{ opacity: 0, scale: 0 }}
|
exit={{ opacity: 0, scale: 0 }}
|
||||||
@ -99,7 +99,7 @@ export function InputBox({
|
|||||||
)}
|
)}
|
||||||
</AnimatePresence>
|
</AnimatePresence>
|
||||||
<MessageInput
|
<MessageInput
|
||||||
className={cn("h-24 px-4 pt-3")}
|
className={cn("h-24 px-4 pt-5", feedback && "pt-9")}
|
||||||
ref={inputRef}
|
ref={inputRef}
|
||||||
onEnter={handleSendMessage}
|
onEnter={handleSendMessage}
|
||||||
/>
|
/>
|
||||||
@ -127,7 +127,6 @@ export function InputBox({
|
|||||||
backgroundInvestigation && "!border-brand !text-brand",
|
backgroundInvestigation && "!border-brand !text-brand",
|
||||||
)}
|
)}
|
||||||
variant="outline"
|
variant="outline"
|
||||||
size="lg"
|
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
setEnableBackgroundInvestigation(!backgroundInvestigation)
|
setEnableBackgroundInvestigation(!backgroundInvestigation)
|
||||||
}
|
}
|
||||||
|
@ -116,6 +116,7 @@ const MessageInput = forwardRef<MessageInputRef, MessageInputProps>(
|
|||||||
transformCopiedText: false,
|
transformCopiedText: false,
|
||||||
}),
|
}),
|
||||||
Placeholder.configure({
|
Placeholder.configure({
|
||||||
|
showOnlyCurrent: false,
|
||||||
placeholder: provider
|
placeholder: provider
|
||||||
? "What can I do for you? \nYou may refer to RAG resources by using @."
|
? "What can I do for you? \nYou may refer to RAG resources by using @."
|
||||||
: "What can I do for you?",
|
: "What can I do for you?",
|
||||||
@ -169,7 +170,7 @@ const MessageInput = forwardRef<MessageInputRef, MessageInputProps>(
|
|||||||
editorProps={{
|
editorProps={{
|
||||||
attributes: {
|
attributes: {
|
||||||
class:
|
class:
|
||||||
"prose prose-base dark:prose-invert prose-headings:font-title font-default focus:outline-none max-w-full",
|
"prose prose-base dark:prose-invert inline-editor font-default focus:outline-none max-w-full",
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
onCreate={({ editor }) => {
|
onCreate={({ editor }) => {
|
||||||
|
@ -2,8 +2,18 @@
|
|||||||
max-width: inherit;
|
max-width: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.prose .placeholder {
|
.prose.inline-editor * {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prose.inline-editor .is-empty {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prose.inline-editor .is-empty.placeholder {
|
||||||
|
display: block;
|
||||||
opacity: 0.65;
|
opacity: 0.65;
|
||||||
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ProseMirror {
|
.ProseMirror {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user