mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-26 10:06:13 +00:00
fix(ui/ingest): expand when clicking anywhere not just icon (#14515)
This commit is contained in:
parent
d4349b3ae2
commit
eb902858e7
@ -47,8 +47,9 @@ export function StructuredReportItem({ item, color, textColor, icon, defaultActi
|
||||
return (
|
||||
<StyledCard
|
||||
style={{ backgroundColor: color }}
|
||||
onClick={toggleExpanded}
|
||||
icon={
|
||||
<HeaderContainer onClick={toggleExpanded}>
|
||||
<HeaderContainer>
|
||||
{icon && <Icon icon={icon} source="phosphor" style={{ color: textColor }} size="md" />}
|
||||
<ChevronIcon
|
||||
icon={isExpanded ? 'CaretUp' : 'CaretDown'}
|
||||
@ -69,10 +70,10 @@ export function StructuredReportItem({ item, color, textColor, icon, defaultActi
|
||||
</Text>
|
||||
}
|
||||
width="100%"
|
||||
isCardClickable={false}
|
||||
isCardClickable
|
||||
>
|
||||
{isExpanded && (
|
||||
<Content>
|
||||
<Content onClick={(e) => e.stopPropagation()}>
|
||||
<StructuredReportItemContext item={item} />
|
||||
</Content>
|
||||
)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user