From 3ff0f6187a92542844b8fbb570049788b756dc5a Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Wed, 20 Mar 2024 20:41:49 +0530 Subject: [PATCH] [WEB-762] chore: cycle, module modal improvement and cycle, module (#4000) * chore: cycle modal description improvement * chore: updated the description ui in cycles and modules --------- Co-authored-by: gurusainath --- web/components/cycles/form.tsx | 2 +- web/components/cycles/sidebar.tsx | 14 ++++++++------ web/components/modules/form.tsx | 2 +- web/components/modules/sidebar.tsx | 9 ++++++--- 4 files changed, 16 insertions(+), 11 deletions(-) diff --git a/web/components/cycles/form.tsx b/web/components/cycles/form.tsx index 27b972044..f8092f8d0 100644 --- a/web/components/cycles/form.tsx +++ b/web/components/cycles/form.tsx @@ -113,7 +113,7 @@ export const CycleForm: React.FC = (props) => { id="cycle_description" name="description" placeholder="Description..." - className="!h-24 w-full resize-none text-sm" + className="w-full text-sm resize-none min-h-24" hasError={Boolean(errors?.description)} value={value} onChange={onChange} diff --git a/web/components/cycles/sidebar.tsx b/web/components/cycles/sidebar.tsx index e142b95ec..ed6fe4b75 100644 --- a/web/components/cycles/sidebar.tsx +++ b/web/components/cycles/sidebar.tsx @@ -8,7 +8,7 @@ import { Disclosure, Transition } from "@headlessui/react"; // icons import { ICycle } from "@plane/types"; // ui -import { Avatar, CustomMenu, Loader, LayersIcon, TOAST_TYPE, setToast } from "@plane/ui"; +import { Avatar, CustomMenu, Loader, LayersIcon, TOAST_TYPE, setToast, TextArea } from "@plane/ui"; // components import { SidebarProgressStats } from "@/components/core"; import ProgressChart from "@/components/core/sidebar/progress-chart"; @@ -219,8 +219,8 @@ export const CycleDetailsSidebar: React.FC = observer((props) => { ? "0 Issue" : `${cycleDetails.progress_snapshot.completed_issues}/${cycleDetails.progress_snapshot.total_issues}` : cycleDetails.total_issues === 0 - ? "0 Issue" - : `${cycleDetails.completed_issues}/${cycleDetails.total_issues}`; + ? "0 Issue" + : `${cycleDetails.completed_issues}/${cycleDetails.total_issues}`; const daysLeft = findHowManyDaysLeft(cycleDetails.end_date); @@ -290,9 +290,11 @@ export const CycleDetailsSidebar: React.FC = observer((props) => { {cycleDetails.description && ( - - {cycleDetails.description} - +