-
Notifications
You must be signed in to change notification settings - Fork 77
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
feat: embedded pdf previews #769
base: primary
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Need to verify mobile embeds work appropriately |
Should pop the standard browser pdf viewer -- and that isn't it. Will have to do look at this again. @Sleinmaster device? |
Pixel 4 XL Android 13 It probably looks like that because pdf in general don't open in the browser but get downloaded. https://support.google.com/chrome/thread/68561173/android-chrome-browser-don-t-preview-pdf?hl=en |
Ah neat -- great testing // maybe on mobile I'll block the embed preview or it could possibly be a CSS issue since the embed takes the styles from that based on what I understand. I'll give those a try -- since downloading the PDF or having it open on a mobile is typically (on a personal level) how I view pdfs or like restaurant menus. |
Just an update, haven't had time to vet this further. I might draft this PR and add a TODO later today to fix some of the outstanding issues. |
a27535a
to
1645b3d
Compare
@Sleinmaster So I made some changes but it doesn't address your comments on andriod yet as that seems unavoidable and at least on our platform unsure how to hide elements we don't want on certain devices without being hacky about it. Here's an iOS example on a 13p max. |
Will revisit this in the future. |
Summary
Uses a new pymdonx extension -> pathconverter in our config and uses absolute paths with
/docs
as the root.pdf-embed
inside of the extra.css with responsive styling for tablets + mobile phones.Testing
Check if working and usable in modern browsers and mobile devices.
Location
Discord username (if different from GitHub): Valastiri#8902