Progress Commit

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-05-17 16:29:46 -04:00
parent c3108a17f4
commit 55d729339f
9 changed files with 440 additions and 511 deletions

View File

@@ -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}