Skip to content

Commit 424ce18

Browse files
BircckLucki2g
authored andcommitted
fix(website): preserve string format highlighting in column search
1 parent a6dcf5a commit 424ce18

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎Website/components/datamodelview/attributes/StringAttribute.tsx‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,14 @@ export default function StringAttribute({ attribute, highlightMatch, highlightTe
1111
<Typography component="span" className="font-semibold text-xs md:font-bold md:text-sm">{highlightMatch && highlightTerm ? highlightMatch("Text", highlightTerm) : "Text"}</Typography>
1212
{" "}
1313
<Typography component="span" className="text-xs md:text-sm">
14-
({formatNumberSeperator(attribute.MaxLength)}){attribute.Format !== "Text" ? ` - ${highlightMatch && highlightTerm ? highlightMatch(attribute.Format, highlightTerm) : attribute.Format}` : ""}
14+
({formatNumberSeperator(attribute.MaxLength)})
15+
{attribute.Format !== "Text" && (
16+
<>
17+
{" - "}
18+
{highlightMatch && highlightTerm ? highlightMatch(attribute.Format, highlightTerm) : attribute.Format}
19+
</>
20+
)}
1521
</Typography>
1622
</>
1723
);
18-
}
24+
}

0 commit comments

Comments
 (0)