Default viewer doesn't use 'retina' toolbar icons on iOS
See original GitHub issueWhen using the default viewer provided with PDF.js on iOS (retina), the toolbar icons appear blurry.
This seems to be because the following media query in viewer.css isn’t being matched:
@media screen and (min-resolution: 2dppx)
Changing this to include a webkit-specific prefix seems to solve this:
@media screen and (min-resolution: 2dppx), (-webkit-min-device-pixel-ratio: 2)
(My CSS knowledge isn’t great, so apologies if there are problems with this)
I realise that users are expected to build upon the default viewer, but it would be nice if this worked out of the box.
(Tested using iOS 9.1 Safari & UIWebview)
Issue Analytics
- State:
- Created 8 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
App Icons on iPhone, iPad and Apple Watch
From the set outline view (left column), select the app icon set. For new or migrated projects it will be named 'AppIcon'.
Read more >Icons Too Small on iPadOS? Here's How to Fix It - PCMag
1. Update to iPadOS 2. Change App Icon Size 3. Lock Today View
Read more >Hidden iPhone Tips and Tricks to Make You an iOS Pro
As of iOS 13, it's also part of the Apple default keyboard in iOS. ... (Bonus: if you see an app in that...
Read more >How big should a UIBarButtonItem image be?
So, if you use custom and system icons in one toolbar, I would suggest to use 25px-50px-75px scaling, or your custom icons will...
Read more >The iOS Design Guidelines
Icons used in Navigation Bars and Toolbars should be in outlined style with a stroke width of 1 or 1.5pt. Since iOS 11...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing since this is fixed by #9629.
this is a big +1 from me too thanks