Skip to content

Commit

Permalink
BUGFIX/HCMPRE-1818: Height of FilterCard Changed (#2191)
Browse files Browse the repository at this point in the history
  • Loading branch information
abishekTa-egov authored Feb 5, 2025
1 parent 35fbe07 commit 2414a37
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<title>DIGIT</title>
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].44/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].45/dist/index.css" />

<!-- added below css for hcm-workbench module inclusion-->
<!-- <link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" /> -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@egovernments/digit-ui-health-css",
"version": "0.2.44",
"version": "0.2.45",
"license": "MIT",
"main": "dist/index.css",
"author": "Jagankumar <[email protected]>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -548,3 +548,15 @@ tbody tr:last-child td:last-child .digit-dropdown-employee-select-wrap .digit-dr
color: #363636;
font-size: 1.1rem;
}

.pop-inbox-wrapper-filter-table-wrapper.planInbox-filtercard-table-wrapper {
align-items: stretch;
}

.filter-card{
&.plan-inbox-filtercard{
.content-container{
flex:1;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const InboxFilterWrapper = (props) => {
const [filterValues, setFilterValues] = useState(
{ status: null, onRoadCondition: null, terrain: null, securityQ1: null, securityQ2: null, facilityId:null }
);

// Default selected option
let defaultSelectedOptions = props.defaultValue
? Object.entries(props.defaultValue).reduce((acc, [key, value]) => {
Expand Down Expand Up @@ -161,8 +161,9 @@ const InboxFilterWrapper = (props) => {
primaryActionLabel={resultArray.length > 0 && t(props?.primaryActionLabel)}
secondaryActionLabel={resultArray.length > 0 && t(props?.secondaryActionLabel)}
title={t(props?.title)}
className={props?.isPlanInbox ? "plan-inbox-filtercard" : ""}
>
<div className="gap-between-dropdowns" style={{ height: "18rem" }}>
<div className="gap-between-dropdowns">
{/* Only render LabelFieldPair if resultArray has items */}
{resultArray.length > 0 && (
<LabelFieldPair vertical style={{ marginBottom: "1rem" }} >
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const PlanInbox = () => {
const [defaultBoundaries, setDefaultBoundaries] = useState([]);
const userRoles = user?.info?.roles?.map((roleData) => roleData?.code);
const hrms_context_path = window?.globalConfigs?.getConfig("HRMS_CONTEXT_PATH") || 'health-hrms';

// Check if the user has the 'rootapprover' role
const isRootApprover = userRoles?.includes("ROOT_PLAN_ESTIMATION_APPROVER");

Expand Down Expand Up @@ -849,6 +849,7 @@ const PlanInbox = () => {
userRole = "PLAN_ESTIMATION_APPROVER";
}
});


return (
<div className="pop-inbox-wrapper">
Expand Down Expand Up @@ -879,7 +880,7 @@ const PlanInbox = () => {
/>

<div
className="pop-inbox-wrapper-filter-table-wrapper"
className="pop-inbox-wrapper-filter-table-wrapper planInbox-filtercard-table-wrapper"
style={{
marginBottom:
(isRootApprover && isStatusConditionMet(totalStatusCount) && planObject?.status === "RESOURCE_ESTIMATION_IN_PROGRESS") ||
Expand Down
2 changes: 1 addition & 1 deletion health/micro-ui/web/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" />
<!-- added below css for hcm-workbench module inclusion-->
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].44/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].45/dist/index.css" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#00bcd1" />
<title>DIGIT HCM</title>
Expand Down

0 comments on commit 2414a37

Please sign in to comment.