mozilla / mozilla/pdf.js

[Bug]: display look very broken when the window is very small

Open
#21,119 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

viewer
Dominant language
JavaScript
Stars
53.9k
Forks
10.7k
Avg merge
18h 38m
Merged PRs (30d)
130

Description

Attach (recommended) or Link to PDF file

https://drive.google.com/file/d/1AFQYV50Jy-5J8P3x04YZeGxlQNLmnyqn/

Web browser and its version

Firefox 149.0.2 (aarch64)

Operating system and its version

macOS Tahoe Version 26.4.1

PDF.js version

v5.6.205

Is the bug present in the latest PDF.js version?

Yes

Is a browser extension

No

Steps to reproduce the problem
  1. press/ to open up quick search to make the effect more dramatic.
  2. make the window very small.
What is the expected behavior?

The text in the UI should be displayed interactively in a way that reflects natural behavior.

What went wrong?

The display of elements like doorHangerRight menu for Document Outline or viewsManagerHeaderLabel look very broken when the window is very small.

Image
Link to a viewer

No response

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the PDF.js viewer with Firefox on macOS: open quick search with / and shrink the window substantially. Inspect the responsive behavior of the doorHangerRight menu and viewsManagerHeaderLabel at that size. Done means the affected UI text and controls remain naturally readable and interactive in very small windows.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.