Skip to content

Commit

Permalink
feat (gui) : 调整PDF预览大小
Browse files Browse the repository at this point in the history
  • Loading branch information
hellofinch committed Dec 19, 2024
1 parent 2592343 commit 448eae5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pdf2zh/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,10 @@ def progress_bar(t: tqdm.tqdm):
.progress-bar {
border-radius: 8px !important;
}
.pdf-canvas canvas {
width: 100%;
}
"""

demo_recaptcha = """
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 448eae5

Please sign in to comment.