mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
feat: fixed the issue that some PDF documents could not be displayed on the chunk list page in small screens and logout (#105)
* feat: logout * feat: fixed the issue that some PDF documents could not be displayed on the chunk list page in small screens
This commit is contained in:
@ -38,6 +38,7 @@ const Chunk = () => {
|
||||
const { removeChunk } = useDeleteChunkByIds();
|
||||
const documentInfo = useSelectDocumentInfo();
|
||||
const { handleChunkCardClick, selectedChunkId } = useHandleChunkCardClick();
|
||||
const isPdf = documentInfo.type === 'pdf';
|
||||
|
||||
const getChunkList = useCallback(() => {
|
||||
const payload: PayloadType = {
|
||||
@ -164,7 +165,7 @@ const Chunk = () => {
|
||||
></ChunkToolBar>
|
||||
<Divider></Divider>
|
||||
<Flex flex={1} gap={'middle'}>
|
||||
<Flex flex={1} vertical>
|
||||
<Flex vertical className={isPdf ? styles.pagePdfWrapper : ''}>
|
||||
<div className={styles.pageContent}>
|
||||
<Spin spinning={loading} className={styles.spin} size="large">
|
||||
<Space
|
||||
@ -204,7 +205,7 @@ const Chunk = () => {
|
||||
</div>
|
||||
</Flex>
|
||||
|
||||
{documentInfo.type === 'pdf' && (
|
||||
{isPdf && (
|
||||
<section className={styles.documentPreview}>
|
||||
<DocumentPreview
|
||||
selectedChunkId={selectedChunkId}
|
||||
|
||||
Reference in New Issue
Block a user