Skip to content

[Bug]: The "Attachments" and "Layers" labels are right-aligned in the sidebar toolbar #20893

@Snuffleupagus

Description

@Snuffleupagus

Attach (recommended) or Link to PDF file

Any PDF with attachments and/or layers, e.g.

Web browser and its version

N/A

Operating system and its version

N/A

PDF.js version

master

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

Yes

Is a browser extension

No

Steps to reproduce the problem

  1. Open the PDFs in the viewer.
  2. Open the sidebar.
  3. Choose "Attachments" or "Layers", depending on the file.

What is the expected behavior?

That the viewsManagerHeaderLabel element is centred for "Attachments" and "Layers", the way it is for "Pages" and "Document outline".

What went wrong?

The viewsManagerHeaderLabel element is right-aligned.

Image Image

Link to a viewer

No response

Additional context

Note: I seem to recall that this used to be correct, so I believe that it's a recent regression.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions