-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Making top nav menu responsive #16618
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
Conversation
started the job as gitpod-build-bmh-responsive-top-nav.1 because the annotations in the pull request description changed |
/hold for feedback |
Looking at this now! 👀 |
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.
Thanks for making these changes, @selfcontained! 🌮 🌮
Cross-posting relevant discussion from #16164 (comment) for visibility.
Left some minor non-blocking comments we can pick up in follow up issues or PRs.
Let's merge this as code changes have already been approved in #16618 (review).
/unhold
return ( | ||
<div | ||
className={classNames( | ||
"text-base text-gray-500 dark:text-gray-400 flex items-center space-x-1 py-1", |
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.
suggestion: The y-padding here is probably not needed as it's ignored by thy py-2
, but it should be fine to resolve in a follow up PR to unblock this.
"text-base text-gray-500 dark:text-gray-400 flex items-center space-x-1 py-1", | |
"text-base text-gray-500 dark:text-gray-400 flex items-center space-x-1", |
<div className="flex justify-between h-10 mb-3 w-full"> | ||
<div className="flex items-center"> | ||
{/* hidden on smaller screens */} | ||
<Link to="/" className="hidden md:inline pr-3 w-10"> |
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.
thought: Seems like there could be room for keeping the logo but let's try this and see if we need to revert this.
<div className="flex justify-between items-center pr-3"> | ||
<Link to="/" className="pr-3 w-10"> | ||
<header className="app-container flex flex-col pt-4" data-analytics='{"button_type":"menu"}'> | ||
<div className="flex justify-between h-10 mb-3 w-full"> |
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.
))} | ||
{/* hidden on smaller screens (in it's own menu below on smaller screens) */} | ||
<div className="hidden md:block pl-2"> | ||
<OrgPagesNav /> |
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.
thought: Looking forward for the changes in #16433 to land and tone down a bit these two links here.
withAdminLink | ||
withFeedbackLink |
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.
praise: Loving the move of these links on smaller viewports. 🔮
Description
This makes some updates to the top nav menu so it's more responsive, stems from a discussion @gtsiolis and I had about improving responsiveness. Main changes are:
For smaller screens
Workspaces | Projects
menu items shifted down to their own rowAdmin | Feedback
links moved into User MenuRelated Issue(s)
Relates to #4050
How to test
Release Notes
Documentation
Build Options:
Experimental feature to run the build with GitHub Actions (and not in Werft).
leeway-target=components:all
Run Leeway with
--dont-test
Publish Options
Installer Options
Add desired feature flags to the end of the line above, space separated
Preview Environment Options:
If enabled this will build
install/preview
If enabled this will create the environment on GCE infra
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh