Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
c6dd3076
authored
Aug 08, 2024
by
papapatrick
Committed by
GitHub
Aug 08, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: quote display error (#2298)
parent
b4f3a77b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
projects/app/src/components/core/chat/ChatContainer/ChatBox/components/ResponseTags.tsx
+3
-1
No files found.
projects/app/src/components/core/chat/ChatContainer/ChatBox/components/ResponseTags.tsx
View file @
c6dd3076
...
...
@@ -12,6 +12,7 @@ import MyIcon from '@fastgpt/web/components/common/Icon';
import
{
useSystem
}
from
'@fastgpt/web/hooks/useSystem'
;
import
{
ChatSiteItemType
}
from
'@fastgpt/global/core/chat/type'
;
import
{
addStatisticalDataToHistoryItem
}
from
'@/global/core/chat/utils'
;
import
{
useSize
}
from
'ahooks'
;
const
QuoteModal
=
dynamic
(()
=>
import
(
'./QuoteModal'
));
const
ContextModal
=
dynamic
(()
=>
import
(
'./ContextModal'
));
...
...
@@ -55,6 +56,7 @@ const ResponseTags = ({
onOpen
:
onOpenContextModal
,
onClose
:
onCloseContextModal
}
=
useDisclosure
();
useSize
(
quoteListRef
);
const
quoteIsOverflow
=
quoteListRef
.
current
?
quoteListRef
.
current
.
scrollHeight
>
(
isPc
?
50
:
55
)
:
true
;
...
...
@@ -84,7 +86,7 @@ const ResponseTags = ({
<>
<
Flex
justifyContent=
{
'space-between'
}
alignItems=
{
'center'
}
>
<
Box
width=
{
'100%'
}
>
<
ChatBoxDivider
icon=
"core/chat/quoteFill"
text=
{
t
(
'common:core.chat.Quote'
)
}
/>
{
' '
}
<
ChatBoxDivider
icon=
"core/chat/quoteFill"
text=
{
t
(
'common:core.chat.Quote'
)
}
/>
</
Box
>
{
quoteFolded
&&
quoteIsOverflow
&&
(
<
MyIcon
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment