From 94c53804cee603d05bdd0ffbf869f8becb2eb140 Mon Sep 17 00:00:00 2001 From: archer <545436317@qq.com> Date: Mon, 4 Sep 2023 14:45:01 +0800 Subject: [PATCH] fix: quick question and variable --- client/src/components/ChatBox/index.tsx | 3 +++ client/src/components/Markdown/index.module.scss | 3 +++ client/src/components/Markdown/index.tsx | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/client/src/components/ChatBox/index.tsx b/client/src/components/ChatBox/index.tsx index 3dd1ff5a5..57c84527e 100644 --- a/client/src/components/ChatBox/index.tsx +++ b/client/src/components/ChatBox/index.tsx @@ -565,6 +565,9 @@ const ChatBox = ( label: item.value, value: item.value }))} + {...register(item.key, { + required: item.required + })} value={getValues(item.key)} onchange={(e) => { setValue(item.key, e); diff --git a/client/src/components/Markdown/index.module.scss b/client/src/components/Markdown/index.module.scss index f07766ee0..db8da7396 100644 --- a/client/src/components/Markdown/index.module.scss +++ b/client/src/components/Markdown/index.module.scss @@ -334,6 +334,9 @@ background-color: transparent; border: medium none; } +.markdown hr { + margin: 10px 0; +} .markdown { text-align: justify; tab-size: 4; diff --git a/client/src/components/Markdown/index.tsx b/client/src/components/Markdown/index.tsx index eaf37a06c..523b10d0a 100644 --- a/client/src/components/Markdown/index.tsx +++ b/client/src/components/Markdown/index.tsx @@ -1,4 +1,4 @@ -import React, { useCallback, useMemo } from 'react'; +import React, { useMemo } from 'react'; import ReactMarkdown from 'react-markdown'; import RemarkGfm from 'remark-gfm'; import RemarkMath from 'remark-math';