From 03947b05606257feaf0fc0b5f83291314914ae80 Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal Date: Fri, 12 May 2023 01:23:31 +0530 Subject: [PATCH 1/2] fix: kanban board horizontal scroll --- .../core/board-view/single-board.tsx | 104 +++++++++--------- 1 file changed, 53 insertions(+), 51 deletions(-) diff --git a/apps/app/components/core/board-view/single-board.tsx b/apps/app/components/core/board-view/single-board.tsx index 5d33b15bfc5..cec5efc9070 100644 --- a/apps/app/components/core/board-view/single-board.tsx +++ b/apps/app/components/core/board-view/single-board.tsx @@ -66,45 +66,45 @@ export const SingleBoard: React.FC = ({ }, [currentState]); return ( -
-
- - {isCollapsed && ( - - {(provided, snapshot) => ( -
- {orderBy !== "sort_order" && ( - <> -
-
- This board is ordered by{" "} - {replaceUnderscoreIfSnakeCase( - orderBy ? (orderBy[0] === "-" ? orderBy.slice(1) : orderBy) : "created_at" - )} -
- - )} +
+ + {isCollapsed && ( + + {(provided, snapshot) => ( +
+ {orderBy !== "sort_order" && ( + <> +
+
+ This board is ordered by{" "} + {replaceUnderscoreIfSnakeCase( + orderBy ? (orderBy[0] === "-" ? orderBy.slice(1) : orderBy) : "created_at" + )} +
+ + )} +
{groupedByIssues?.[groupTitle].map((issue, index) => ( = ({ )} ))} - - {provided.placeholder} - +
+
{type === "issue" ? (
- )} - - )} -
+ + {provided.placeholder} + +
+ )} +
+ )}
); }; From 4070a915bd3948a324b9b5561bb471bc0eb05918 Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal Date: Fri, 12 May 2023 02:06:39 +0530 Subject: [PATCH 2/2] chore: droppable placeholder position --- .../core/board-view/single-board.tsx | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/app/components/core/board-view/single-board.tsx b/apps/app/components/core/board-view/single-board.tsx index cec5efc9070..d0fe1834acd 100644 --- a/apps/app/components/core/board-view/single-board.tsx +++ b/apps/app/components/core/board-view/single-board.tsx @@ -79,9 +79,9 @@ export const SingleBoard: React.FC = ({ {(provided, snapshot) => (
@@ -139,6 +139,13 @@ export const SingleBoard: React.FC = ({ )} ))} + + {provided.placeholder} +
{type === "issue" ? ( @@ -177,13 +184,6 @@ export const SingleBoard: React.FC = ({ ) )}
- - {provided.placeholder} -
)}