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 within nav_sidebar layout #4452

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

Writhe
Copy link
Contributor

@Writhe Writhe commented Nov 16, 2023

This PR fixes footer positioning when rendered within nav sidebar layout above "lg" breakpoint.

The issue
The layout's content slot has 200px of left-padding to accommodate the sidebar. The footer has absolute position to make it sit over its container's (seemingly unnecessary) bottom padding. That same container was missing position: relative, so the footer's left: 0 was at the layout's left border - underneath the sidebar.

Before:
Screenshot 2023-11-17 at 13 20 11

After:
Screenshot 2023-11-17 at 13 21 32

[EDIT]: This does not seem related to issue 3635 after all. That issue concerns Project Overview page, which uses a different layout (also, I wasn't able to replicate it, so maybe it got fixed).

Note
In the long term, my recommendation would be to make the layout responsible for its children's positioning. Currently, the footer template contains specific positioning rules which limit its reusability. Perhaps a dedicated footer slot in the layout?

@Writhe Writhe changed the title [FIX] Footer positioning within nav_sidebar layout [MER-3635] [FIX] Footer positioning within nav_sidebar layout [#3635] Nov 17, 2023
@Writhe Writhe changed the title [FIX] Footer positioning within nav_sidebar layout [#3635] [FIX] Footer positioning within nav_sidebar layout Nov 17, 2023
Copy link
Contributor

@eliknebel eliknebel left a comment

Choose a reason for hiding this comment

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

tested, fixes the issue

@eliknebel eliknebel merged commit e83f3d1 into Simon-Initiative:master Nov 29, 2023
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.

2 participants