From 7ad49645569a0e23bf9084782c605635a8e44751 Mon Sep 17 00:00:00 2001 From: EdwinKato Date: Mon, 11 Dec 2023 17:01:16 +0300 Subject: [PATCH] Fix padding on folders page --- front/app/containers/Admin/index.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/front/app/containers/Admin/index.tsx b/front/app/containers/Admin/index.tsx index a8ca6d5ac3ce..091ec7d8b79e 100644 --- a/front/app/containers/Admin/index.tsx +++ b/front/app/containers/Admin/index.tsx @@ -109,9 +109,13 @@ const AdminPage = memo( if (!userCanViewPath) { return null; } - const isProjectPage = pathname.match( - /admin\/projects\/[a-f0-9-]+(\/[\w-]+)*/ + const isFoldersPage = pathname.match( + /admin\/projects\/folders\/[a-f0-9-]+(\/(?!projects(?:\/|$))[\w-]+)*/ ); + const isProjectPage = + pathname.match( + /admin\/projects\/[a-f0-9-]+(\/(?!projects(?:\/|$))[\w-]+)*/ + ) && !isFoldersPage; const noPadding = pathname.includes('admin/dashboard') ||