Skip to content

Commit

Permalink
fix(core): fixes issue with overlapping text in error message (#4970)
Browse files Browse the repository at this point in the history
  • Loading branch information
binoy14 authored and rexxars committed Oct 20, 2023
1 parent 4a8a56a commit b6a268a
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,17 @@ export function SchemaProblemGroups(props: {problemGroups: SchemaValidationProbl
>
{group.path.map((segment, j) => {
if (segment.kind === 'type') {
const text = `${_renderSegmentName(segment.name)}:${segment.type}`
return (
<Text key={j} size={1}>
<SegmentSpan>{`${_renderSegmentName(segment.name)}:${
segment.type
}`}</SegmentSpan>
<Text title={text} key={j} size={1} textOverflow="ellipsis">
<SegmentSpan>{text}</SegmentSpan>
</Text>
)
}

if (segment.kind === 'property') {
return (
<Text key={j} size={1}>
<Text title={segment.name} key={j} size={1} textOverflow="ellipsis">
<SegmentSpan>{segment.name}</SegmentSpan>
</Text>
)
Expand Down

0 comments on commit b6a268a

Please sign in to comment.