From 6725b1c399a3f97f71479172eb9d5e55c906ed7c Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sun, 22 Mar 2026 00:09:15 +0000 Subject: [PATCH] Enhance ObjectCard component to include state visibility condition and adjust line height for improved readability. --- src/components/Dashboard/common/ObjectCard.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Dashboard/common/ObjectCard.jsx b/src/components/Dashboard/common/ObjectCard.jsx index 0682025..ef47e75 100644 --- a/src/components/Dashboard/common/ObjectCard.jsx +++ b/src/components/Dashboard/common/ObjectCard.jsx @@ -22,7 +22,8 @@ const ObjectCard = ({ if ( (Object.keys(visibleColumns).length > 0 && visibleColumns[prop.name] === false) || - prop.name == 'name' + prop.name == 'name' || + (prop.name == 'state' && visibleColumns?.name == true) ) { return } @@ -64,8 +65,7 @@ const ObjectCard = ({ style={{ fontSize: 20, fontWeight: '600', - lineHeight: 1, - overflow: 'visible' + lineHeight: 1.2 }} /> {visibleColumns?.state == true && (