Layer5 Navbar is Fixed Now#6295
Conversation
|
🚀 Preview for commit 759386a at: https://67cd9f02e67f894800ec9efb--layer5.netlify.app |
|
@Dungeon-Masterji A better solution is to use position: sticky;. This ensures that the element stays positioned correctly relative to the viewport without overlapping the navbar, while still allowing it to scroll naturally with the page when needed. This way, the content automatically adjusts and remains visible without requiring hardcoded margins. Let me know if you need any further clarifications. Thanks! |
| transition-duration: 0.8s; | ||
| transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); | ||
|
|
||
|
|
There was a problem hiding this comment.
Noticed an extra blank line—keeping changes minimal helps reviewers focus on the key updates. Would you mind removing it? Appreciate your efforts! 😊
There was a problem hiding this comment.
Thanks for pointing that out! I've made the change. Your attention to detail is super helpful! 👍
|
|
||
| const NavigationWrap = styled.header` | ||
| width: 100vw; | ||
| position: fixed; |
There was a problem hiding this comment.
| position: fixed; | |
| position: sticky; |
There was a problem hiding this comment.
Thanks for the suggestion! I've replaced position: fixed with position: sticky as you recommended. Initially, I had tried using sticky earlier, but didn't notice any difference. However,navbar re-implementing it, I see that it's working as expected now. The element stays positioned correctly relative to the viewport, without overlapping the navbar, and scrolls naturally with the page. This solution is definitely more elegant and flexible than hardcoding margins. Appreciate your guidance!
|
🚀 Preview for commit d054390 at: https://67cde0a7f36b0428e8cc1d4c--layer5.netlify.app |
|
@Dungeon-Masterji adding it as an agenda item to the meeting minutes. |
|
@vishalvivekm I think its working for all screen sizes. But the other issue I noticed here, is that the layer5 website's overall layout is not responsive for smaller screen sizes (like tablets, or mobile). You may notice an empty section towards the right side of the footer, for example.
|
|
@Dungeon-Masterji, When making updates based on feedback, adding a new commit is totally fine during the review process. However, before merging, it's a good practice to squash fix-up commits so the commit history stays clean and meaningful. You can do this using: or, if pushing changes after squashing: (Just be cautious when using --force, especially in shared branches!) |
|
@Dungeon-Masterji, if possible, please try to complete this today. Otherwise, I can handle it this time. You can then take the opportunity to learn more about rebase and use it in future contributions. 😊 |
It might just be the reason for header to not be sticky in mobile view, do you mind taking a look at fixing it ? @falgunmpatel |
It's an issue, even when the navbar is not sticky. |
|
@falgunmpatel I acknowledge the fact we have this issue, I'm asking if this is something you could help resolve? |
|
|
Thanks for clarification @vishalvivekm. Yes, I will be working on it. But for this contribution from @Dungeon-Masterji, it can be merged, when the commits are squashed. I will create an issue for responsive layout. |
GARY121github
left a comment
There was a problem hiding this comment.
Just squash your commits, and you're good to go! 🚀
Signed-off-by: Aditya Raj <adityaraj20112005@gmail.com> Update and squashed navigation.style.js Signed-off-by: Aditya Raj <adityaraj20112005@gmail.com> Update navigation.style.js Signed-off-by: Aditya Raj <adityaraj20112005@gmail.com> Update navigation.style.js Signed-off-by: Aditya Raj <adityaraj20112005@gmail.com>
d054390 to
c414fc9
Compare
|
🚀 Preview for commit c414fc9 at: https://67cf33ef3f2ebe00ab002a3e--layer5.netlify.app |
Thank you for suggesting this, @vishalvivekm and for taking care of it, @falgunmpatel... in here, I expect - #6306 |

Description
This PR fixes #6285
Notes for Reviewers
Signed commits