Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify the thumbnail styling in the viewer #16374

Merged
merged 2 commits into from
May 4, 2023

Conversation

Snuffleupagus
Copy link
Collaborator

This patch tries to simplify, and improve, the thumbnail styling:

  • For rendered thumbnails there's one less DOM-element per thumbnail, which can't hurt in longer documents.
  • Use CSS-variables to set the dimensions of all relevant DOM-elements at once.
  • Simplify the visual styling of the thumbnails, e.g. remove the border since the viewer no longer has visible borders around pages, since the relevant CSS-rules are quite old code.
    These changes also, at least in my opinion, makes the relevant CSS-rules much easier to understand and work with.
  • Make it easier to work on e.g. bug 1690428 without affecting the other sidebarViews.

@mozilla mozilla deleted a comment from pdfjsbot Apr 30, 2023
@mozilla mozilla deleted a comment from pdfjsbot Apr 30, 2023
@mozilla mozilla deleted a comment from pdfjsbot Apr 30, 2023
@mozilla mozilla deleted a comment from pdfjsbot Apr 30, 2023
@mozilla mozilla deleted a comment from pdfjsbot May 1, 2023
@mozilla mozilla deleted a comment from pdfjsbot May 1, 2023
@pdfjsbot
Copy link

pdfjsbot commented May 1, 2023

From: Bot.io (Linux m4)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/4c0f4472be25d3e/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 1, 2023

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/4c0f4472be25d3e/output.txt

Total script time: 1.25 mins

Published

Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you.

This patch tries to simplify, and improve, the thumbnail styling:
 - For rendered thumbnails there's one less DOM-element per thumbnail, which can't hurt in longer documents.
 - Use CSS-variables to set the dimensions of all relevant DOM-elements at once.
 - Simplify the visual styling of the thumbnails, e.g. remove the border since the viewer no longer has visible borders around pages, since the relevant CSS-rules are quite old code.
   These changes also, at least in my opinion, makes the relevant CSS-rules much easier to understand and work with.
 - Make it easier to work on e.g. [bug 1690428](https://bugzilla.mozilla.org/show_bug.cgi?id=1690428) without affecting the other sidebarViews.
@Snuffleupagus Snuffleupagus merged commit 4931f29 into mozilla:master May 4, 2023
@Snuffleupagus Snuffleupagus deleted the thumbnail-styles branch May 4, 2023 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants