-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: set aspect ratio for images #21
Conversation
Percy ScreenshotsIn order to conserve our percy screenshot allowance, percy is not configured to run automatically. Please make sure the PR is ready and all other checks are passing, then start it manually: 1. Visit https://github.com/UCLALibrary/ftva-website-nuxt/actions/workflows/percy.yml 2. Click the 'Run workflow' button in the blue bar. 3. Select the correct branch for this PR and click 'Run workflow' again to confirm. |
🚀 Deployed on https://deploy-preview-21--test-ftva.netlify.app |
Connected to APPS-2880
Notes:
The image at the top of the page should have a ratio of 1 (tall) to 2.31 (long), which works out to 1/2.31 = ~.43103
Responsive Image component expects this as a percentage so the prop is passed as 43.103.
Once that was fixed, it was noticed that the blue banner at the top of the screen needed an aspect ratio as well, so that was set.
I also fixed the issue with the pagelayout rendering the credit text whether or not there was any.
UX reported that the carousel should be changed to the same aspect ratio, so I added that to the APPS-2844
Time Report:
It took me 4 hours to build & test this.
Checklist:
[ ] I completed any required mobile breakpoint styling[ ] I completed any required hover state styling[ ] I included a working spec file