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

Fixed homepage appearance in mobile view #5827

Merged
merged 4 commits into from May 25, 2021

Conversation

nancy2681
Copy link
Contributor

Fixed issue #5797

Mobile View

Before :

image

After:

image

Web View

Before:

image

After:

image

@nancy2681 nancy2681 changed the title Homepage Fixed homepage appearance in mobile view May 20, 2021
@nancy2681
Copy link
Contributor Author

@kyletsang Can you please review!?

@@ -84,7 +84,7 @@ const ButtonToolbar = styled('div')`
margin: -1rem;

& > * {
width: 100%;
width: 90%;
Copy link
Member

Choose a reason for hiding this comment

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

I think it's better to use calc() here because the width does not account for the margins hence the overflow

@thelokeshgoel00
Copy link

The Website doesn't looks good after the update on desktop, this reduced height isn't better. Maybe, separate code base for height on mobile and desktop

@nancy2681
Copy link
Contributor Author

The Website doesn't looks good after the update on desktop, this reduced height isn't better. Maybe, separate code base for height on mobile and desktop

There is no significant visible difference I can see with this code change. If you can send screenshot we will get to know more, otherwise i think everything is working fine

@nancy2681
Copy link
Contributor Author

After using calc():

image

@nancy2681
Copy link
Contributor Author

@kyletsang I have made required changes. Please review

@nancy2681 nancy2681 requested a review from kyletsang May 22, 2021 09:42
@@ -84,7 +84,7 @@ const ButtonToolbar = styled('div')`
margin: -1rem;

& > * {
width: 100%;
width: calc(100% - 1.85rem);
Copy link
Member

Choose a reason for hiding this comment

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

Should actually be calc(100% - 2rem) since the margins added on each side sum up to 2.

@nancy2681
Copy link
Contributor Author

@kyletsang Made the required changes. Can you please review!

@kyletsang kyletsang merged commit 82e3953 into react-bootstrap:master May 25, 2021
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.

None yet

4 participants