π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
[WEB-762] chore: cycle, module modal improvement and cycle, module (#4000)
Anmol Singh Bhatia3ff0f6187a92
diff --git a/web/components/cycles/form.tsx b/web/components/cycles/form.tsxindex 27b9720440..f8092f8d06 100644--- a/web/components/cycles/form.tsx+++ b/web/components/cycles/form.tsx@@ -113,7 +113,7 @@ export const CycleForm: React.FC<Props> = (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.tsxindex e142b95ec5..ed6fe4b755 100644--- a/web/components/cycles/sidebar.tsx+++ b/web/components/cycles/sidebar.tsx@@ -8,7 +8,7 @@ import { Disclosure, Transition } from "@headlessui/react";// iconsimport { 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";// componentsimport { SidebarProgressStats } from "@/components/core";import ProgressChart from "@/components/core/sidebar/progress-chart";@@ -219,8 +219,8 @@ export const CycleDetailsSidebar: React.FC<Props> = 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<Props> = observer((props) => {</div>{cycleDetails.description && (- <span className="w-full whitespace-normal break-words py-2.5 text-sm leading-5 text-custom-text-200">- {cycleDetails.description}- </span>+ <TextArea+ className="outline-none ring-none w-full max-h-max bg-transparent !p-0 !m-0 !border-0 resize-none text-sm leading-5 text-custom-text-200"+ value={cycleDetails.description}+ disabled+ />)}<div className="flex flex-col gap-5 pb-6 pt-2.5">diff --git a/web/components/modules/form.tsx b/web/components/modules/form.tsxindex 2daa2da3b3..30749218d1 100644--- a/web/components/modules/form.tsx+++ b/web/components/modules/form.tsx@@ -128,7 +128,7 @@ export const ModuleForm: React.FC<Props> = (props) => {value={value}onChange={onChange}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)}tabIndex={2}/>diff --git a/web/components/modules/sidebar.tsx b/web/components/modules/sidebar.tsxindex c289ebc1e7..4ed37d3449 100644--- a/web/components/modules/sidebar.tsx+++ b/web/components/modules/sidebar.tsx@@ -25,6 +25,7 @@ import {UserGroupIcon,TOAST_TYPE,setToast,+ TextArea,} from "@plane/ui";// componentsimport { LinkModal, LinksList, SidebarProgressStats } from "@/components/core";@@ -337,9 +338,11 @@ export const ModuleDetailsSidebar: React.FC<Props> = observer((props) => {</div>{moduleDetails.description && (- <span className="w-full whitespace-normal break-words py-2.5 text-sm leading-5 text-custom-text-200">- {moduleDetails.description}- </span>+ <TextArea+ className="outline-none ring-none w-full max-h-max bg-transparent !p-0 !m-0 !border-0 resize-none text-sm leading-5 text-custom-text-200"+ value={moduleDetails.description}+ disabled+ />)}<div className="flex items-center justify-start gap-1">