Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PhET widget: responsive iframe sizing (#1595)
## Summary: * Make PhET widget iframe maintain a 16:9 ratio while responsively matching the width of its container Issue: LEMS-2322 ## Screenshots: <img width="983" alt="Screenshot of the PhET widget in the Storybook editor page with a 16:9 responsively sized iframe, filling up a narrow width" src="https://github.com/user-attachments/assets/aa34b041-29dd-4d6a-a760-aa9cb2e68670"> <img width="747" alt="Screenshot of the PhET widget in Storybook with a 16:9 responsively sized iframe, filling up a large width" src="https://github.com/user-attachments/assets/ed6a1af8-b074-45f0-816c-2fbc4ed6d9de"> ## Test plan: * `yarn jest packages/perseus/src/widgets/phet-simulation/phet-simulation.test.ts` * Verify in Storybook that the widget maintains a 16:9 aspect ratio in Storybook and expands to fill available width Author: aemandine Reviewers: SonicScrewdriver, aemandine Required Reviewers: Approved By: SonicScrewdriver Checks: ✅ Upload Coverage (ubuntu-latest, 20.x), ✅ Publish npm snapshot (ubuntu-latest, 20.x), ✅ Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ✅ Check builds for changes in size (ubuntu-latest, 20.x), ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ✅ Jest Coverage (ubuntu-latest, 20.x), ✅ Publish Storybook to Chromatic (ubuntu-latest, 20.x), ✅ Cypress (ubuntu-latest, 20.x), ✅ gerald Pull Request URL: #1595
- Loading branch information