From 5a0f37d784f7cb3d4634b6b727cd5d616383b650 Mon Sep 17 00:00:00 2001 From: anuragnegi000 Date: Tue, 19 Nov 2024 00:22:41 +0530 Subject: [PATCH] fixes:#2429 the search button is misplaced --- .../OrganizationActionItems.module.css | 16 +++++ .../OrganizationActionItems.tsx | 58 +++++++++---------- 2 files changed, 44 insertions(+), 30 deletions(-) diff --git a/src/screens/OrganizationActionItems/OrganizationActionItems.module.css b/src/screens/OrganizationActionItems/OrganizationActionItems.module.css index ac86e19f3f..5f6fd10424 100644 --- a/src/screens/OrganizationActionItems/OrganizationActionItems.module.css +++ b/src/screens/OrganizationActionItems/OrganizationActionItems.module.css @@ -13,6 +13,22 @@ actionItemsContainer { flex-direction: row; } +.searchButton { + position: absolute; + z-index: 10; + display: flex; + justify-content: center; + align-items: center; + right: 0; + bottom: 50px; +} + +@media (max-width: 768px) { + .searchButton { + bottom: 10px; + } +} + .datebox { width: 90%; border-radius: 7px; diff --git a/src/screens/OrganizationActionItems/OrganizationActionItems.tsx b/src/screens/OrganizationActionItems/OrganizationActionItems.tsx index f1a8044d01..3edb0c5751 100644 --- a/src/screens/OrganizationActionItems/OrganizationActionItems.tsx +++ b/src/screens/OrganizationActionItems/OrganizationActionItems.tsx @@ -19,7 +19,7 @@ import type { InterfaceActionItemInfo, InterfaceActionItemList, } from 'utils/interfaces'; -import styles from '../../style/app.module.css'; +import styles from './OrganizationActionItems.module.css'; import Loader from 'components/Loader/Loader'; import { DataGrid, @@ -46,6 +46,27 @@ enum ModalState { STATUS = 'status', } +const dataGridStyle = { + '&.MuiDataGrid-root .MuiDataGrid-cell:focus-within': { + outline: 'none !important', + }, + '&.MuiDataGrid-root .MuiDataGrid-columnHeader:focus-within': { + outline: 'none', + }, + '& .MuiDataGrid-row:hover': { + backgroundColor: 'transparent', + }, + '& .MuiDataGrid-row.Mui-hovered': { + backgroundColor: 'transparent', + }, + '& .MuiDataGrid-root': { + borderRadius: '0.5rem', + }, + '& .MuiDataGrid-main': { + borderRadius: '0.5rem', + }, +}; + /** * Component for managing and displaying action items within an organization. * @@ -307,10 +328,10 @@ function organizationActionItems(): JSX.Element { return ( <>