feat: scrollable columns with deals

This commit is contained in:
2025-08-18 09:45:54 +04:00
parent 19a386319c
commit 49b1a235be
2 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import React, { ReactNode } from "react"; import React, { ReactNode } from "react";
import { Box, Stack } from "@mantine/core"; import { Box, ScrollArea, Stack } from "@mantine/core";
import { StatusSchema } from "@/lib/client"; import { StatusSchema } from "@/lib/client";
import styles from "./StatusColumnWrapper.module.css"; import styles from "./StatusColumnWrapper.module.css";
@ -17,7 +17,11 @@ const StatusColumnWrapper = ({ renderHeader, children }: Props) => {
pb={"xs"} pb={"xs"}
className={styles["inner-container"]}> className={styles["inner-container"]}>
{renderHeader()} {renderHeader()}
{children} <ScrollArea
offsetScrollbars={"y"}
scrollbars={"y"}>
<Stack mah={"calc(100vh - 220px)"}>{children}</Stack>
</ScrollArea>
</Stack> </Stack>
</Box> </Box>
); );

View File

@ -134,6 +134,7 @@ const FunnelDnd = <
mousewheel={{ mousewheel={{
enabled: true, enabled: true,
sensitivity: 0.2, sensitivity: 0.2,
releaseOnEdges: true,
}} }}
freeMode={{ enabled: true }} freeMode={{ enabled: true }}
grabCursor> grabCursor>