Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export function PackageCard({
titleLineClamp,
descriptionLineClamp,
maxCardHeight,
minCardHeight,
showDescription = true,
showReleaseBadge = true,
}: PackageCardProps) {
Expand Down Expand Up @@ -227,6 +228,8 @@ export function PackageCard({
[class*='euiCard__titleButton'] {
${getLineClampStyles(titleLineClamp)}
}

min-height: ${minCardHeight ? `${minCardHeight}px` : '127px'};
`}
data-test-subj={testid}
isquickstart={isQuickstart}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export interface IntegrationCardItem {
isUnverified?: boolean;
isUpdateAvailable?: boolean;
maxCardHeight?: number;
minCardHeight?: number;
name: string;
onCardClick?: () => void;
release?: IntegrationCardReleaseLabel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ describe('applyCategoryBadgeAndStyling', () => {
expect(result.showReleaseBadge).toBe(false);
});

it('should set maxCardHeight to 88', () => {
it('should set minCardHeight to 88', () => {
const result = applyCategoryBadgeAndStyling(mockInt, IntegrationsFacets.available);

expect(result.maxCardHeight).toBe(88);
expect(result.minCardHeight).toBe(88);
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const FEATURED_INTEGRATION_SORT_ORDER = [
'epr:sentinel_one',
'epr:crowdstrike',
];
const INTEGRATION_CARD_MAX_HEIGHT_PX = 88;
const INTEGRATION_CARD_MIN_HEIGHT_PX = 88;

const addPathParamToUrl = (url: string, path: string) => {
const encodedPath = encodeURIComponent(path);
Expand Down Expand Up @@ -67,7 +67,7 @@ export const applyCategoryBadgeAndStyling = (
</EuiFlexItem>,
] as React.ReactNode[])
: [],
maxCardHeight: INTEGRATION_CARD_MAX_HEIGHT_PX,
minCardHeight: INTEGRATION_CARD_MIN_HEIGHT_PX,
};
};

Expand Down
Loading