Wizard: fix overflowing bp name

Truncate the name of a bp if it's too long and does not fit the Blueprint card on landing page. Not sure truncating is what we want tho.

Fixes #3034
This commit is contained in:
Katarina Sieklova 2025-08-14 14:48:25 +02:00 committed by Gianluca Zuccarelli
parent f6f6e58449
commit 54e413f459

View file

@ -8,6 +8,7 @@ import {
CardHeader,
CardTitle,
Spinner,
Truncate,
} from '@patternfly/react-core';
import { useDeleteBPWithNotification as useDeleteBlueprintMutation } from '../../Hooks';
@ -54,7 +55,7 @@ const BlueprintCard = ({ blueprint }: blueprintProps) => {
{isLoading && blueprint.id === selectedBlueprintId && (
<Spinner size='md' />
)}
{blueprint.name}
<Truncate content={blueprint.name} position='end' />
</CardTitle>
</CardHeader>
<CardBody>{blueprint.description}</CardBody>