diff --git a/pdf2zh/gui.py b/pdf2zh/gui.py index e91aa956..6ce7450c 100644 --- a/pdf2zh/gui.py +++ b/pdf2zh/gui.py @@ -326,6 +326,10 @@ def progress_bar(t: tqdm.tqdm): .progress-bar { border-radius: 8px !important; } + + .pdf-canvas canvas { + width: 100%; + } """ demo_recaptcha = """ @@ -498,7 +502,7 @@ def on_select_page(choice): with gr.Column(scale=2): gr.Markdown("## Preview") - preview = PDF(label="Document Preview", visible=True) + preview = PDF(label="Document Preview", visible=True, height=2000) # Event handlers file_input.upload(