[前端+RAG] 修复PDF ArrayBuffer detached;修复阅读模式右侧空白(覆盖PyMuPDF固定宽度)
This commit is contained in:
@@ -948,9 +948,11 @@ class FileConverter:
|
||||
|
||||
css = '''<style>
|
||||
.pdf-preview { font-family: system-ui, -apple-system, sans-serif; line-height: 1.6; max-width: 100%; }
|
||||
.pdf-preview > div { width: 100% !important; max-width: 100% !important; }
|
||||
.pdf-preview img { max-width: 100%; height: auto; }
|
||||
.pdf-preview p { margin: 0.3em 0; }
|
||||
.pdf-preview span { line-height: 1.5; }
|
||||
.pdf-page > div { width: 100% !important; max-width: 100% !important; }
|
||||
</style>'''
|
||||
|
||||
if not any_text:
|
||||
|
||||
Reference in New Issue
Block a user