From 86b5da3ea071f8b59d3f26ab6bc1143a35dea328 Mon Sep 17 00:00:00 2001 From: Muhammad Ibrahim Date: Wed, 8 Oct 2025 17:25:24 +0100 Subject: [PATCH] Removed titles from the top nav bar to give space to search bar --- frontend/src/components/Layout.jsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/Layout.jsx b/frontend/src/components/Layout.jsx index 6ee89db..93658d8 100644 --- a/frontend/src/components/Layout.jsx +++ b/frontend/src/components/Layout.jsx @@ -929,8 +929,10 @@ const Layout = ({ children }) => {
- {/* Page title - hidden on dashboard to give more space to search */} - {location.pathname !== "/" && ( + {/* Page title - hidden on dashboard, hosts, repositories, and packages to give more space to search */} + {!["/", "/hosts", "/repositories", "/packages"].includes( + location.pathname, + ) && (

{getPageTitle()} @@ -940,7 +942,7 @@ const Layout = ({ children }) => { {/* Global Search Bar */}