chore(plugin-org): rename scrollHeight property to maxScrollHeight

Signed-off-by: Benjamin Janssens <benji.janssens@gmail.com>
This commit is contained in:
Benjamin Janssens
2025-08-14 13:41:59 +02:00
parent 737d4a73f8
commit c8b7ce9112
@@ -94,19 +94,20 @@ export const OwnershipCard = (props: {
relationsType?: EntityRelationAggregation;
relationAggregation?: EntityRelationAggregation;
entityLimit?: number;
scrollHeight?: string;
maxScrollHeight?: string;
}) => {
const {
variant,
entityFilterKind,
hideRelationsToggle,
entityLimit = 6,
scrollHeight: propScrollHeight,
maxScrollHeight: propMaxScrollHeight,
} = props;
const relationAggregation = props.relationAggregation ?? props.relationsType;
const relationsToggle =
hideRelationsToggle === undefined ? false : hideRelationsToggle;
const scrollHeight = variant !== 'fullHeight' ? propScrollHeight : undefined;
const maxScrollHeight =
variant !== 'fullHeight' ? propMaxScrollHeight : undefined;
const classes = useStyles();
const { entity } = useEntity();
const { t } = useTranslationRef(orgTranslationRef);
@@ -174,7 +175,7 @@ export const OwnershipCard = (props: {
</ListItem>
</List>
)}
<Box maxHeight={scrollHeight} className={classes.box}>
<Box maxHeight={maxScrollHeight} className={classes.box}>
<ComponentsGrid
className={classes.grid}
entity={entity}