From 4025ddca51a8b9f21ff82713766e31a97d39f787 Mon Sep 17 00:00:00 2001 From: Satish Gandham Date: Mon, 3 Jun 2024 18:27:38 +0530 Subject: [PATCH] Fix sortable spacing issue in create estimate modal --- .../estimates/points/create-root.tsx | 47 ++++++++++--------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/web/components/estimates/points/create-root.tsx b/web/components/estimates/points/create-root.tsx index e1b3f1e1a..244ec0727 100644 --- a/web/components/estimates/points/create-root.tsx +++ b/web/components/estimates/points/create-root.tsx @@ -2,9 +2,9 @@ import { Dispatch, FC, SetStateAction, useCallback, useState } from "react"; import { observer } from "mobx-react"; import { Plus } from "lucide-react"; import { TEstimatePointsObject, TEstimateSystemKeys } from "@plane/types"; -import { Button, Draggable, Sortable } from "@plane/ui"; +import { Button, Sortable } from "@plane/ui"; // components -import { EstimatePointItemPreview, EstimatePointCreate } from "@/components/estimates/points"; +import { EstimatePointCreate, EstimatePointItemPreview } from "@/components/estimates/points"; // constants import { maxEstimatesCount } from "@/constants/estimates"; // hooks @@ -83,27 +83,28 @@ export const EstimatePointCreateRoot: FC = observer((p return (
{estimate?.type}
- ( - - handleEstimatePoint("update", { ...value, value: estimatePointValue }) - } - handleEstimatePointValueRemove={() => handleEstimatePoint("remove", value)} - /> - )} - onChange={(data: TEstimatePointsObject[]) => handleDragEstimatePoints(data)} - keyExtractor={(item: TEstimatePointsObject) => item?.id?.toString() || item.value.toString()} - /> - +
+ ( + + handleEstimatePoint("update", { ...value, value: estimatePointValue }) + } + handleEstimatePointValueRemove={() => handleEstimatePoint("remove", value)} + /> + )} + onChange={(data: TEstimatePointsObject[]) => handleDragEstimatePoints(data)} + keyExtractor={(item: TEstimatePointsObject) => item?.id?.toString() || item.value.toString()} + /> +
{estimatePointCreate && estimatePointCreate.map((estimatePoint) => (