feat: select view buttons

This commit is contained in:
2025-08-28 11:00:41 +04:00
parent e9b8cdb010
commit 4323695069
14 changed files with 220 additions and 22 deletions

View File

@ -1,6 +1,6 @@
.container {
@media (min-width: 48em) {
max-width: calc(100vw - 450px);
max-width: calc(100vw - 210px - var(--mantine-spacing-md));
}
@media (max-width: 48em) {
max-width: 100vw;

View File

@ -0,0 +1,28 @@
"use client";
import { Space } from "@mantine/core";
import MainBlockHeader from "@/app/deals/components/mobile/MainBlockHeader/MainBlockHeader";
import Funnel from "@/app/deals/components/shared/Funnel/Funnel";
import { DealsContextProvider } from "@/app/deals/contexts/DealsContext";
import { useViewContext } from "@/app/deals/contexts/ViewContext";
const PageBody = () => {
const { view } = useViewContext();
if (view === "board")
return (
<>
<MainBlockHeader />
<Space h={"md"} />
<DealsContextProvider>
<Funnel />
</DealsContextProvider>
</>
);
if (view === "table") return <>-</>;
return <>-</>;
};
export default PageBody;

View File

@ -1,6 +1,6 @@
.container {
height: calc(100vh - 150px);
height: calc(100vh - 210px);
@media (max-width: 48em) {
width: 80vw;
height: calc(100vh - 215px);