From 1ba70e4e2d82575ab6d81809cbb8a10238cabd8a Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia Date: Mon, 18 Nov 2024 16:40:04 +0530 Subject: [PATCH 1/2] fix: issue dertail page unnecessary scroll --- .../(detail)/[projectId]/issues/(detail)/layout.tsx | 2 +- web/core/components/core/content-wrapper.tsx | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(detail)/layout.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(detail)/layout.tsx index 37f4a7749af..d2ccb109baf 100644 --- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(detail)/layout.tsx +++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(detail)/layout.tsx @@ -8,7 +8,7 @@ export default function ProjectIssueDetailsLayout({ children }: { children: Reac return ( <> } /> - {children} + {children} ); } diff --git a/web/core/components/core/content-wrapper.tsx b/web/core/components/core/content-wrapper.tsx index f9523996753..eefc96b1e0d 100644 --- a/web/core/components/core/content-wrapper.tsx +++ b/web/core/components/core/content-wrapper.tsx @@ -1,13 +1,16 @@ "use client"; import { ReactNode } from "react"; +// helpers +import { cn } from "@/helpers/common.helper"; export interface ContentWrapperProps { + className?: string; children: ReactNode; } -export const ContentWrapper = ({ children }: ContentWrapperProps) => ( +export const ContentWrapper = ({ className, children }: ContentWrapperProps) => (
-
{children}
+
{children}
); From 3cb4dd1f109de469dde9eb473f31209aca624c4b Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia Date: Tue, 19 Nov 2024 16:40:26 +0530 Subject: [PATCH 2/2] fix: issue detail sidebar ui --- web/core/components/issues/issue-detail/root.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/core/components/issues/issue-detail/root.tsx b/web/core/components/issues/issue-detail/root.tsx index 9db4b1ab9e9..a5363e78cac 100644 --- a/web/core/components/issues/issue-detail/root.tsx +++ b/web/core/components/issues/issue-detail/root.tsx @@ -360,7 +360,7 @@ export const IssueDetailRoot: FC = observer((props) => { />