Enhance ObjectCard component to include state visibility condition and adjust line height for improved readability.

This commit is contained in:
Tom Butcher 2026-03-22 00:09:15 +00:00
parent b4512a1948
commit 6725b1c399

View File

@ -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 && (