Skip to content

Commit

Permalink
Styling of rulenames badges wraps properly (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
mickol34 authored Oct 11, 2024
1 parent 2221791 commit 10351e6
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions src/mqueryfront/src/query/QueryMatchesItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,19 @@ const QueryMatchesItem = (props) => {
</a>
));

const matchBadges = Object.values(matches).map((v) => (
<span
key={v}
className="badge rounded-pill bg-primary ms-1 mt-1 cursor-pointer"
onClick={() => props.changeFilter(v)}
>
{v}
</span>
));
const matchBadges = (
<div>
{Object.values(matches).map((v) => (
<span
key={v}
className="badge rounded-pill bg-primary ms-1 mt-1 cursor-pointer text-wrap"
onClick={() => props.changeFilter(v)}
>
{v}
</span>
))}
</div>
);

return (
<tr>
Expand Down

0 comments on commit 10351e6

Please sign in to comment.