From 188867bbc93754db455a1c7e01e2419ba84bfe5e Mon Sep 17 00:00:00 2001 From: Kiranism Date: Mon, 22 Jan 2024 10:02:03 +0530 Subject: [PATCH] fix:responsive scroll --- app/(dashboard)/dashboard/profile/page.tsx | 5 +- .../dashboard/user/[userId]/page.tsx | 25 ++-- components/layout/header.tsx | 4 +- components/layout/sidebar.tsx | 2 +- .../tables/employee-tables/employee-table.tsx | 140 +++++++++--------- components/ui/data-table.tsx | 2 +- 6 files changed, 93 insertions(+), 85 deletions(-) diff --git a/app/(dashboard)/dashboard/profile/page.tsx b/app/(dashboard)/dashboard/profile/page.tsx index b89fcdd2..6cf9eb01 100644 --- a/app/(dashboard)/dashboard/profile/page.tsx +++ b/app/(dashboard)/dashboard/profile/page.tsx @@ -1,14 +1,15 @@ import BreadCrumb from "@/components/breadcrumb"; import { CreateProfileOne } from "@/components/forms/user-profile-stepper/create-profile"; +import { ScrollArea } from "@/components/ui/scroll-area"; const breadcrumbItems = [{ title: "Profile", link: "/dashboard/profile" }]; export default function page() { return ( - <> +
- +
); } diff --git a/app/(dashboard)/dashboard/user/[userId]/page.tsx b/app/(dashboard)/dashboard/user/[userId]/page.tsx index a7c58001..2c305e9a 100644 --- a/app/(dashboard)/dashboard/user/[userId]/page.tsx +++ b/app/(dashboard)/dashboard/user/[userId]/page.tsx @@ -1,5 +1,6 @@ import BreadCrumb from "@/components/breadcrumb"; import { ProductForm } from "@/components/forms/product-form"; +import { ScrollArea } from "@/components/ui/scroll-area"; import React from "react"; export default function Page() { @@ -8,16 +9,18 @@ export default function Page() { { title: "Create", link: "/dashboard/user/create" }, ]; return ( -
- - -
+ +
+ + +
+
); } diff --git a/components/layout/header.tsx b/components/layout/header.tsx index 485d3804..805ac5b1 100644 --- a/components/layout/header.tsx +++ b/components/layout/header.tsx @@ -8,7 +8,7 @@ export default function Header() { return (