-
Notifications
You must be signed in to change notification settings - Fork 112
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
Page layout change proposal #1524
Conversation
Really nice one! Just tested and I agree this is 100% better :) |
Awesome, thank you! I will adjust the paddings and then open the PR |
Alright all done, checked every page and sub page, should be good to go 🙂👍 |
@@ -12,7 +12,7 @@ export function SideNav() { | |||
{navItems.map((item) => { | |||
return ( | |||
<Link | |||
to={item.url} | |||
to={`/${item.url}`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I noticed these relative URL's have bene causing issues... Wonder what's the root cause, maybe Remix bug?
Very nice job! And good attention to detail with the scroll bar in this and the object damage calc pr :) |
I noticed on the VODs page that the content clips into the sidebar before it reaches the breakpoint.
I was going to make a quick fix by adding some padding, but noticed the reason for this is that both navbar and sidebar do not take any actual space on the page due to having a fixed position.
By moving around some elements and changing them to be sticky its possible to have the same behavior while having the elements actually take up space.
This makes layouting easier and more consistent and avoids clipping. Both navbar and sidebar would also be more future proof to any changes since they can no longer mess with any page content.
It also has the added benefit of making the interaction with the footer a lot more natural!
If you look at the main content div you can see that it now respects the sidebar and navbar
I made the pull request a draft because in order to avoid clipping in the current layout, all pages have top paddings applied to them, which means I would have to go through every page and adjust the paddings to get the original look back, so I would like to get your thoughts on this first!