From 96222850829a88f6bc81844db78368acb4c37b92 Mon Sep 17 00:00:00 2001 From: Yehualashet Date: Thu, 26 Oct 2023 14:45:57 +0200 Subject: [PATCH] fix ui related issue --- apps/web/components/ui/data-table.tsx | 8 +++++--- apps/web/components/ui/table.tsx | 19 ++++++++++--------- apps/web/lib/features/team-member-cell.tsx | 5 +++-- apps/web/pages/index.tsx | 4 ++-- 4 files changed, 20 insertions(+), 16 deletions(-) diff --git a/apps/web/components/ui/data-table.tsx b/apps/web/components/ui/data-table.tsx index ff5c167bb..cae448f7f 100644 --- a/apps/web/components/ui/data-table.tsx +++ b/apps/web/components/ui/data-table.tsx @@ -72,7 +72,7 @@ function DataTable({ }) return ( - +
{table.getHeaderGroups().map((headerGroup) => ( @@ -97,10 +97,12 @@ function DataTable({ {row.getVisibleCells().map((cell) => ( - + + {flexRender( cell.column.columnDef.cell, cell.getContext() diff --git a/apps/web/components/ui/table.tsx b/apps/web/components/ui/table.tsx index 87b4af4ad..e59990b4f 100644 --- a/apps/web/components/ui/table.tsx +++ b/apps/web/components/ui/table.tsx @@ -1,6 +1,7 @@ import * as React from "react" -import { cn } from "lib/utils" +import { clsxm } from '@app/utils'; + const Table = React.forwardRef< HTMLTableElement, @@ -9,7 +10,7 @@ const Table = React.forwardRef<
@@ -20,7 +21,7 @@ const TableHeader = React.forwardRef< HTMLTableSectionElement, React.HTMLAttributes >(({ className, ...props }, ref) => ( - + )) TableHeader.displayName = "TableHeader" @@ -30,7 +31,7 @@ const TableBody = React.forwardRef< >(({ className, ...props }, ref) => ( )) @@ -42,7 +43,7 @@ const TableFooter = React.forwardRef< >(({ className, ...props }, ref) => ( )) @@ -54,7 +55,7 @@ const TableRow = React.forwardRef< >(({ className, ...props }, ref) => ( (({ className, ...props }, ref) => (
(({ className, ...props }, ref) => ( )) @@ -96,7 +97,7 @@ const TableCaption = React.forwardRef< >(({ className, ...props }, ref) => (
)) diff --git a/apps/web/lib/features/team-member-cell.tsx b/apps/web/lib/features/team-member-cell.tsx index bc456ff67..84a60ee98 100644 --- a/apps/web/lib/features/team-member-cell.tsx +++ b/apps/web/lib/features/team-member-cell.tsx @@ -52,7 +52,7 @@ export function WorkedOnTaskCell({ row }: { row: any }) { memberInfo={memberInfo} task={memberInfo?.memberTask} isAuthUser={memberInfo?.isAuthUser} - className="2xl:w-48 3xl:w-[12rem] w-1/5 lg:px-4 px-2 flex flex-col gap-y-[1.125rem] justify-center" + className="2xl:w-32 3xl:w-[8rem] w-1/5 flex flex-col gap-y-[1.125rem] justify-center" /> ); } @@ -95,7 +95,8 @@ export function ActionMenuCell ({ cell }: { cell: any}) { checked={user_selected()} className={clsxm( 'border-none w-4 h-4 mr-1 accent-primary-light', - 'border-2 border-primary-light' + 'border-2 border-primary-light', + '2xl:w-[2rem] w-1/5' )} noWrapper={true} onChange={onUserSelect} diff --git a/apps/web/pages/index.tsx b/apps/web/pages/index.tsx index cc02032f5..92d3c94ec 100644 --- a/apps/web/pages/index.tsx +++ b/apps/web/pages/index.tsx @@ -16,7 +16,7 @@ import { MainHeader, MainLayout } from 'lib/layout'; import { useTranslation } from 'react-i18next'; import { useState } from 'react'; import { IssuesView } from '@app/constants'; -import { TableCellsIcon, ListBulletIcon } from '@heroicons/react/24/solid'; +import { TableCellsIcon, QueueListIcon } from '@heroicons/react/24/solid'; function MainPage() { const { t } = useTranslation(); @@ -55,7 +55,7 @@ function MainPage() { )} onClick={() => setView(IssuesView.TABLE)} > - +