jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

PDF Embed: improve the squished layout on iOS mobile browser view

Open lancewillett opened this issue 6 years ago • 8 comments

Follow-up (non-blocker) to https://github.com/Automattic/jetpack/pull/15454

CC @jeherve

Steps to reproduce the issue

  1. Embed a PDF file into a post, publish
  2. View the post on iPhone or iPad

What I expected

I expected to see a link or URL only, like other mobile devices.

What happened instead

It appears that iOS (well, Mobile Safari) attempts to display the object — but the 800 pixel height throws off the display a bit.

Screenshots

Screen Shot 2020-04-16 at 09 54 39

Suggested change

Open to suggestions. One idea is to provide a different height value such as auto for this case.

lancewillett avatar Apr 16 '20 23:04 lancewillett

Closed https://github.com/Automattic/wp-calypso/issues/47768 in favor of this one.

cathymcbride avatar Dec 01 '20 21:12 cathymcbride

Another report in 26190005-hc

eduardozulian avatar Dec 10 '20 15:12 eduardozulian

Another report here: 26714885-hc

Nic-Sevic avatar Feb 22 '21 14:02 Nic-Sevic

reported again here: hc-28297718 screenshot: https://d.pr/n/d4u7TW

selectedselections avatar Mar 11 '21 22:03 selectedselections

Got another report on 30054327-hc, where they said:

I have embedded various pdf on one of my pages and on my computer I can view them perfectly. On android phone they can be viewed perfectly as well. But on my iphone and ipad I can only view the first page and I have no option to download it.

Not sure about Android, because in our tests we only see a link, while the user mentioned it works for them. While testing on an iPhone though, it shows just the first page, like a static image. Recommended using Google Drive, that seems to work.

carinapilar avatar Jun 14 '21 21:06 carinapilar

Another report in 4337947-zen

Robertght avatar Sep 30 '21 12:09 Robertght

Also reported in 35044216-hc - actually this is a different issue, where the embed doesn't display at all on an iPhone

kathrynwp avatar Apr 04 '22 19:04 kathrynwp

I'll close this issue now; since #22305 Jetpack's PDF embed does not actually embed PDFs anymore, it only renders a link. If you're experiencing issues with PDF embeds on a site, that site is most likely using WordPress Core's File block instead.

That block lives in the Gutenberg repository: https://github.com/WordPress/gutenberg/

jeherve avatar Apr 05 '22 04:04 jeherve