feat: scrollable columns with deals
This commit is contained in:
@ -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>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user