@@ -55,7 +55,6 @@ export function ProductionBoardKanbanComponent({
|
||||
const [isMoving, setIsMoving] = useState(false);
|
||||
|
||||
const [orientation, setOrientation] = useState("horizontal");
|
||||
|
||||
const { t } = useTranslation();
|
||||
|
||||
useEffect(() => {
|
||||
@@ -223,7 +222,7 @@ export function ProductionBoardKanbanComponent({
|
||||
|
||||
const components = {
|
||||
Card: (cardProps) => ProductionBoardCard({ card: cardProps, technician, bodyshop, cardSettings }),
|
||||
LaneHeader: cardSettings.stickyheader ? StickyHeader : NormalHeader
|
||||
LaneHeader: cardSettings.stickyheader && orientation === "horizontal" ? StickyHeader : NormalHeader
|
||||
};
|
||||
|
||||
return (
|
||||
@@ -255,9 +254,8 @@ export function ProductionBoardKanbanComponent({
|
||||
<StickyContainer>
|
||||
<Board
|
||||
data={boardLanes}
|
||||
draggable
|
||||
handleDragEnd={handleDragEnd}
|
||||
style={{ height: "100%", backgroundColor: "transparent" }}
|
||||
style={{ height: "100%", backgroundColor: "transparent", overflowY: "auto" }}
|
||||
components={components}
|
||||
orientation={orientation}
|
||||
collapsibleLanes
|
||||
@@ -267,9 +265,8 @@ export function ProductionBoardKanbanComponent({
|
||||
<div>
|
||||
<Board
|
||||
data={boardLanes}
|
||||
draggable
|
||||
handleDragEnd={handleDragEnd}
|
||||
style={{ backgroundColor: "transparent" }}
|
||||
style={{ backgroundColor: "transparent", overflowY: "auto" }}
|
||||
components={components}
|
||||
collapsibleLanes
|
||||
orientation={orientation}
|
||||
|
||||
Reference in New Issue
Block a user