forked from fkzhao/ragflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: thumbnails are too large in the chat box infiniflow#818 (infinif…
…low#819) ### What problem does this PR solve? fix: thumbnails are too large in the chat box infiniflow#818 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
- Loading branch information
Showing
7 changed files
with
43 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { useTranslate } from '@/hooks/commonHooks'; | ||
import { Form, Switch } from 'antd'; | ||
|
||
const LayoutRecognize = () => { | ||
const { t } = useTranslate('knowledgeDetails'); | ||
return ( | ||
<Form.Item | ||
name={['parser_config', 'layout_recognize']} | ||
label={t('layoutRecognize')} | ||
initialValue={true} | ||
valuePropName="checked" | ||
tooltip={t('layoutRecognizeTip')} | ||
> | ||
<Switch /> | ||
</Form.Item> | ||
); | ||
}; | ||
|
||
export default LayoutRecognize; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,9 @@ | |
// .referenceIcon { | ||
// padding: 0 6px; | ||
// } | ||
.thumbnailImg { | ||
max-width: 20px; | ||
} | ||
} | ||
|
||
.messageItemLeft { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,9 @@ | |
.messageEmpty { | ||
width: 300px; | ||
} | ||
.thumbnailImg { | ||
max-width: 20px; | ||
} | ||
} | ||
|
||
.messageItemLeft { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters