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

Use aspect-ratio for height on Examples #538

Closed
wants to merge 2 commits into from

Conversation

guilherssousa
Copy link
Contributor

@guilherssousa guilherssousa commented Aug 28, 2023

Description

  • Adding new page
  • Updating existing documentation
  • Other updates

On the Examples page, thanks to height: 100%;, the content overflows and goes up on the footer.
image

A quick fix to it is use aspect-ratio: 1 / 2 to have a specific height set based by the width, then fixing the overflow issue. Plus, adding a max-height of nearly 900px (near of an 1:1 ratio from desktop), this makes responsiveness better on mobile devices.

image

Resolution

On a half size of an ultrawide display:

Before: 909x842
After: 909x900

@vercel
Copy link

vercel bot commented Aug 28, 2023

@guilherssousa is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

@orca-security-us orca-security-us bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant