From e29edfc02b268855b2fad746e3c6e0dd590ef8b6 Mon Sep 17 00:00:00 2001 From: Ramesh Kumar Chandra <31303617+rameshkumarchandra@users.noreply.github.com> Date: Mon, 12 Feb 2024 17:01:24 +0530 Subject: [PATCH] style: issue detail responsiveness (#3625) --- .../headers/project-issue-details.tsx | 12 +++++++++-- .../actions/helpers/activity-block.tsx | 2 +- web/components/issues/issue-detail/root.tsx | 16 +++++++++------ .../issues/issue-detail/sidebar.tsx | 13 ++++++------ .../issues/issue-detail/subscription.tsx | 14 ++++++++++--- .../spreadsheet/columns/header-column.tsx | 19 +++++++++--------- .../projects/[projectId]/issues/[issueId].tsx | 20 +++++++++++++++++-- web/store/application/theme.store.ts | 16 ++++++++++++++- 8 files changed, 80 insertions(+), 32 deletions(-) diff --git a/web/components/headers/project-issue-details.tsx b/web/components/headers/project-issue-details.tsx index 8d3a22682..3732f2598 100644 --- a/web/components/headers/project-issue-details.tsx +++ b/web/components/headers/project-issue-details.tsx @@ -3,7 +3,7 @@ import useSWR from "swr"; import { useRouter } from "next/router"; import { observer } from "mobx-react-lite"; // hooks -import { useProject } from "hooks/store"; +import { useApplication, useProject } from "hooks/store"; // ui import { Breadcrumbs, LayersIcon } from "@plane/ui"; // helpers @@ -15,6 +15,8 @@ import { ISSUE_DETAILS } from "constants/fetch-keys"; // components import { SidebarHamburgerToggle } from "components/core/sidebar/sidebar-menu-hamburger-toggle"; import { BreadcrumbLink } from "components/common"; +import { PanelRight } from "lucide-react"; +import { cn } from "helpers/common.helper"; // services const issueService = new IssueService(); @@ -25,6 +27,7 @@ export const ProjectIssueDetailsHeader: FC = observer(() => { const { workspaceSlug, projectId, issueId } = router.query; // store hooks const { currentProjectDetails, getProjectById } = useProject(); + const { theme: themeStore } = useApplication(); const { data: issueDetails } = useSWR( workspaceSlug && projectId && issueId ? ISSUE_DETAILS(issueId as string) : null, @@ -33,12 +36,14 @@ export const ProjectIssueDetailsHeader: FC = observer(() => { : null ); + const isSidebarCollapsed = themeStore.issueDetailSidebarCollapsed; + return (