-
Notifications
You must be signed in to change notification settings - Fork 109
feat: header facelift #1662
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
base: master
Are you sure you want to change the base?
feat: header facelift #1662
Conversation
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.
Bug: Navbar Height Issue Causes SubNavbar Overlap
The dynamic calculation for --ifm-navbar-height
was removed, hardcoding it to 68px. This causes layout issues when the SubNavbar component renders (which previously increased the height to 123px), leading to the SubNavbar overlapping with main content due to insufficient allocated space.
apify-docs-theme/src/theme/Layout/index.jsx#L6-L19
apify-docs/apify-docs-theme/src/theme/Layout/index.jsx
Lines 6 to 19 in 85f13f4
export default function LayoutWrapper(props) { | |
const baseUrl = useBaseUrl('/'); | |
const currentPath = useLocation().pathname.replace(new RegExp(`^${baseUrl}`), ''); | |
return ( | |
<div style={{ | |
margin: 0, | |
padding: 0, | |
boxSizing: 'border-box', | |
}}> | |
<Layout {...props} /> | |
</div> | |
); |
Comment bugbot run
to trigger another review on this PR
Was this report helpful? Give feedback by reacting with 👍 or 👎
Preview for this PR was built for commit |
Preview for this PR was built for commit |
Preview for this PR was built for commit |
Cursor complains about overlapping header logic that I removed but I couldn't find such occurrence 😅 |
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.
Nice!! Thank you :)
The bigger space for navbar is because of pages with the submenu, I guess we are not getting rid of that? e.g. https://docs.apify.com/academy but also many others, basically everything except landing pages and API docs |
This looks completely broken on my end, not sure if it can be some caching issue (I did reload the cache). ![]() |
Also, I am personally not very happy with the decision to move the discord link only to the footer, I'd keep it in the navbar and have a link in the footer. |
There are other small issues I see when clicking the preview, just to name a few:
|
Preview for this PR was built for commit |
I fixed (at least I hope) all pending stylistic issues. For the overall design overhaul I synced with @hanatsai before implementing and those changes were based on unifying the interface across platforms (web, crawlee etc.) |
Preview for this PR was built for commit |
it looks like the layout shift on the sidebar is still there. when you open the page, its smaller, then it gets bigger, then if you open one section (with the arrow), it shrinks again. and i'd say its still quite high even in the shrunk form (but i might get used to that 🙃) Zaznam.obrazovky.2025-07-02.v.16.21.52.mov |
so we agreed we'll keep wider layout in the documentation and the Discord icons. Here is the Figma file. |
apify-docs-theme/src/theme/Navbar/MobileSidebar/Header/index.jsx
Outdated
Show resolved
Hide resolved
Preview for this PR was built for commit |
All pending issues should have been fixed 🤞 |
In designs it looks better with more narrow columns. I don't think we can you the same setup as with crawlee since more than 3 columns wouldn't just fit it. @hanatsai what do you think? |
yes, I think the position is not a big problem here. Because documentation has more items. |
It's not a big deal, but I also think this will end up reported in #bugs channel eventually 🙃
In that screenshot, the columns don't have the same width, that also doesn't sound like a good practice to me. |
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.
Looks good, just found two nits for the mobile menu.
- There is a double scrollbar
- When searching the menu does not close
Screen.Recording.2025-07-03.at.11.59.19.mov
@webrdaniel both should be fixed now, good catch 💪 |
Preview for this PR was built for commit |
@B4nan I was wondering - when this is merged, do I need to manually bump theme version in |
Nope, it's all automated. |
Co-authored-by: Martin Adámek <[email protected]>
Preview for this PR was built for commit |
closes https://github.com/apify/apify-web/issues/4926