Skip to content

Commit

Permalink
feat(MR detail): truncate description in header
Browse files Browse the repository at this point in the history
Signed-off-by: gitdallas <[email protected]>
  • Loading branch information
gitdallas committed Aug 29, 2024
1 parent 3174a74 commit b20d55b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { useParams } from 'react-router';
import { Breadcrumb, BreadcrumbItem } from '@patternfly/react-core';
import { Breadcrumb, BreadcrumbItem, Truncate } from '@patternfly/react-core';
import { Link } from 'react-router-dom';
import ApplicationsPage from '~/pages/ApplicationsPage';
import useModelVersionsByRegisteredModel from '~/concepts/modelRegistry/apiHooks/useModelVersionsByRegisteredModel';
Expand Down Expand Up @@ -45,7 +45,7 @@ const ModelVersions: React.FC<ModelVersionsProps> = ({ tab, ...pageProps }) => {
}
title={rm?.name}
headerAction={rm && <ModelVersionsHeaderActions rm={rm} />}
description={rm?.description}
description={<Truncate content={rm?.description || ""} />}

Check failure on line 48 in frontend/src/pages/modelRegistry/screens/ModelVersions/ModelVersions.tsx

View workflow job for this annotation

GitHub Actions / Tests (18.x)

Replace `""` with `''`
loadError={loadError}
loaded={loaded}
provideChildrenPadding
Expand Down

0 comments on commit b20d55b

Please sign in to comment.