mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-10-28 02:23:42 +00:00
Removed titles from the top nav bar to give space to search bar
This commit is contained in:
@@ -929,8 +929,10 @@ const Layout = ({ children }) => {
|
|||||||
<div className="h-6 w-px bg-secondary-200 dark:bg-secondary-600 lg:hidden" />
|
<div className="h-6 w-px bg-secondary-200 dark:bg-secondary-600 lg:hidden" />
|
||||||
|
|
||||||
<div className="flex flex-1 gap-x-4 self-stretch lg:gap-x-6">
|
<div className="flex flex-1 gap-x-4 self-stretch lg:gap-x-6">
|
||||||
{/* Page title - hidden on dashboard to give more space to search */}
|
{/* Page title - hidden on dashboard, hosts, repositories, and packages to give more space to search */}
|
||||||
{location.pathname !== "/" && (
|
{!["/", "/hosts", "/repositories", "/packages"].includes(
|
||||||
|
location.pathname,
|
||||||
|
) && (
|
||||||
<div className="relative flex items-center">
|
<div className="relative flex items-center">
|
||||||
<h2 className="text-lg font-semibold text-secondary-900 dark:text-secondary-100 whitespace-nowrap">
|
<h2 className="text-lg font-semibold text-secondary-900 dark:text-secondary-100 whitespace-nowrap">
|
||||||
{getPageTitle()}
|
{getPageTitle()}
|
||||||
@@ -940,7 +942,7 @@ const Layout = ({ children }) => {
|
|||||||
|
|
||||||
{/* Global Search Bar */}
|
{/* Global Search Bar */}
|
||||||
<div
|
<div
|
||||||
className={`flex items-center ${location.pathname === "/" ? "flex-1 max-w-none" : "max-w-sm"}`}
|
className={`flex items-center ${["/", "/hosts", "/repositories", "/packages"].includes(location.pathname) ? "flex-1 max-w-none" : "max-w-sm"}`}
|
||||||
>
|
>
|
||||||
<GlobalSearch />
|
<GlobalSearch />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user