Skip to content

Commit

Permalink
fix(highlight): disable full name highlight (#8750)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Eilers authored Aug 29, 2023
1 parent 2776903 commit 44c9ba4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions datahub-web-react/src/app/entity/group/preview/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ export const Preview = ({
<PlatformText>{entityRegistry.getEntityName(EntityType.CorpGroup)}</PlatformText>
</PlatformInfo>
<Link to={url}>
<EntityTitle>
{name ? <SearchTextHighlighter field="name" text={name} enableFullHighlight /> : urn}
</EntityTitle>
<EntityTitle>{name ? <SearchTextHighlighter field="name" text={name} /> : urn}</EntityTitle>
<MemberCountContainer>
<Tag>{membersCount} members</Tag>
</MemberCountContainer>
Expand Down
4 changes: 1 addition & 3 deletions datahub-web-react/src/app/entity/user/preview/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ export const Preview = ({
<PlatformText>{entityRegistry.getEntityName(EntityType.CorpUser)}</PlatformText>
</PlatformInfo>
<Link to={url}>
<EntityTitle>
{name ? <SearchTextHighlighter field="name" text={name} enableFullHighlight /> : urn}
</EntityTitle>
<EntityTitle>{name ? <SearchTextHighlighter field="name" text={name} /> : urn}</EntityTitle>
</Link>
</TitleContainer>
</Link>
Expand Down
2 changes: 1 addition & 1 deletion datahub-web-react/src/app/preview/DefaultPreviewCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export default function DefaultPreviewCard({
</CardEntityTitle>
) : (
<EntityTitle onClick={onClick} $titleSizePx={titleSizePx}>
<SearchTextHighlighter field="name" text={name || ''} enableFullHighlight />
<SearchTextHighlighter field="name" text={name || ''} />
</EntityTitle>
)}
</Link>
Expand Down

0 comments on commit 44c9ba4

Please sign in to comment.