Skip to content

The open alternative to Salesforce, designed for AI.

Fix New button drag behavior on pipeline views

Charles Bochetd4b1153517ec
diff --git a/front/src/modules/ui/board/components/EntityBoardColumn.tsx b/front/src/modules/ui/board/components/EntityBoardColumn.tsx
index 2bd8ab7bfd4..52df37fedca 100644
--- a/front/src/modules/ui/board/components/EntityBoardColumn.tsx
+++ b/front/src/modules/ui/board/components/EntityBoardColumn.tsx
@@ -97,7 +97,10 @@ export function EntityBoardColumn({
isDragDisabled={true}
>
{(draggableProvided) => (
- <div ref={draggableProvided?.innerRef}>
+ <div
+ ref={draggableProvided?.innerRef}
+ {...draggableProvided?.draggableProps}
+ >
<StyledNewCardButtonContainer>
<RecoilScope>{boardOptions.newCardComponent}</RecoilScope>
</StyledNewCardButtonContainer>
diff --git a/front/src/modules/ui/board/components/NewButton.tsx b/front/src/modules/ui/board/components/NewButton.tsx
index fc1714e5974..6a96b5484f9 100644
--- a/front/src/modules/ui/board/components/NewButton.tsx
+++ b/front/src/modules/ui/board/components/NewButton.tsx
@@ -8,7 +8,7 @@ const StyledButton = styled.button`
align-self: baseline;
background-color: ${({ theme }) => theme.background.primary};
border: none;
- border-radius: ${({ theme }) => theme.border.radius.md};
+ border-radius: ${({ theme }) => theme.border.radius.sm};
color: ${({ theme }) => theme.font.color.tertiary};
cursor: pointer;
display: flex;