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: footer positioning, overflow #473

Merged
merged 1 commit into from
Aug 23, 2023
Merged

fix: footer positioning, overflow #473

merged 1 commit into from
Aug 23, 2023

Conversation

roosta
Copy link
Member

@roosta roosta commented Aug 22, 2023

I've fixed the footer positioning by using flex layout, and I had to wrap <main> with a parent div. In the process I had to fix some issues that cropped up by setting <body> flex direction to column.

This PR also fixes a footer overflow issue that resulted in the dreaded horizontal scrollbar.

These were some fairly substantial changes, so I decided to setup a new PR instead of pushing to existing.

Previous PR introduced a footer, but this footer would not be at the
bottom of the page on larger resolutions (zoom out). This commit fixes
that, by using a flex column layout on body along with min height 100vh
and growing child container.

To achieve this I had set body to a column layout, thereby breaking some
width styling in main container. Fixed this by using max-w instead of
width and the result is easier to understand, albeit still requires the
min-w-0 to be set so that containers shrink correctly.

The main element got wrapped in a parent div, so that we can retain the
flex direction we want. We want the child to grow in the horizontal but
the parent to grow in the vertical.
@roosta roosta requested a review from MindTooth August 22, 2023 15:47
@roosta roosta merged commit a94b1e8 into master Aug 23, 2023
3 checks passed
@roosta roosta deleted the fix/footer-position branch August 23, 2023 12:51
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.

Add a footer like the old site
2 participants