From bf865f399fa1d209f18137295897e94594d7878b Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Fri, 12 May 2023 12:41:31 +0530 Subject: [PATCH] fix: kanban board horizontal scroll (#1038) * fix: kanban board horizontal scroll * chore: droppable placeholder position --- .../core/board-view/single-board.tsx | 90 ++++++++++--------- 1 file changed, 46 insertions(+), 44 deletions(-) diff --git a/apps/app/components/core/board-view/single-board.tsx b/apps/app/components/core/board-view/single-board.tsx index 5d33b15bf..d0fe1834a 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" ? (
- )} - - )} -
+
+ )} +
+ )}
); };