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

"snap to fit" for preview slides does not work in Firefox #62

Open
1 of 5 tasks
thescientist13 opened this issue Dec 1, 2022 · 0 comments
Open
1 of 5 tasks

"snap to fit" for preview slides does not work in Firefox #62

thescientist13 opened this issue Dec 1, 2022 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@thescientist13
Copy link
Owner

Type of Change

  • New Feature Request
  • Documentation
  • Improvement / Suggestion
  • Bug
  • Other (please clarify below)

Summary

Comparing the starter template in FF vs Chrome, it looks like the preview slides on the left are all big and out of perspective.

Chrome
Screen Shot 2022-12-01 at 5 00 50 PM

FF
Screen Shot 2022-12-01 at 5 00 35 PM

Details

Likely has to do with the code inside the <iframe> we use.
https://github.com/thescientist13/greenwood-starter-presentation/blob/master/src/components/slide-list.js#L83

slideLoaded(slide) {
  const frame = this.shadowRoot.getElementById(`slide_${slide.id}`);
  const style = document.createElement('style');
  
  style.textContent = `
    body {
      zoom: .4;
    } 
  `;
  
  frame.contentDocument.head.appendChild(style);
}
@thescientist13 thescientist13 added the bug Something isn't working label Dec 1, 2022
@thescientist13 thescientist13 added this to the MVP milestone Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant