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

Page layout change proposal #1524

Merged
merged 8 commits into from
Oct 21, 2023
Merged

Page layout change proposal #1524

merged 8 commits into from
Oct 21, 2023

Conversation

hfcRed
Copy link
Contributor

@hfcRed hfcRed commented Oct 16, 2023

I noticed on the VODs page that the content clips into the sidebar before it reaches the breakpoint.

opera_ntHC5It9FD

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!

opera_55FEJnINem

If you look at the main content div you can see that it now respects the sidebar and navbar

Untitled

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!

@Sendouc
Copy link
Owner

Sendouc commented Oct 18, 2023

Really nice one! Just tested and I agree this is 100% better :)

@hfcRed
Copy link
Contributor Author

hfcRed commented Oct 18, 2023

Awesome, thank you! I will adjust the paddings and then open the PR

@hfcRed
Copy link
Contributor Author

hfcRed commented Oct 19, 2023

Alright all done, checked every page and sub page, should be good to go 🙂👍

@hfcRed hfcRed marked this pull request as ready for review October 19, 2023 18:52
@@ -12,7 +12,7 @@ export function SideNav() {
{navItems.map((item) => {
return (
<Link
to={item.url}
to={`/${item.url}`}
Copy link
Owner

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?

@Sendouc
Copy link
Owner

Sendouc commented Oct 21, 2023

Very nice job! And good attention to detail with the scroll bar in this and the object damage calc pr :)

@Sendouc Sendouc merged commit 3bfa182 into Sendouc:rewrite Oct 21, 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