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

fix: media Resources not in center issue #5797

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

amitamrutiya
Copy link
Contributor

Description

This PR fixes #5787

Fix this issue by creating a parent component, making it a flex container, and centering it horizontally. Previously, we used margin for centering, which was causing the issue.

Signed commits

  • Yes, I signed my commits.

@l5io
Copy link
Contributor

l5io commented Aug 8, 2024

🚀 Preview for commit dd3b72f at: https://66b4b242de61d5f2ae71cc86--layer5.netlify.app

@Ashparshp
Copy link
Contributor

@amitamrutiya Thanks for your contribution, let's discuss this on the website's call. Please add this as an agenda item to the meeting minutes.

Copy link
Contributor

@Ashparshp Ashparshp left a comment

Choose a reason for hiding this comment

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

LGTM! But have you noticed that there's a single <h2> tag? Do we really need to wrap it in a div with a className, or could we go directly? Just a suggestion, not an issue.

@amitamrutiya
Copy link
Contributor Author

amitamrutiya commented Aug 13, 2024

I tried it, but since we have already defined properties like border and padding in the h2 tag, we need to create a parent container and make it a flex container.

@sudhanshutech sudhanshutech merged commit 278eaa0 into layer5io:master Aug 14, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Media Resources not in center for small device
4 participants