Skip to content

Commit

Permalink
fix: selector block overflow limit
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Apr 27, 2021
1 parent 55e4cb1 commit 5ed1bb7
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions plugins/axe-plugin/src/AllyBlock/NodesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,26 @@ export const NodesTable: FC<NodesTableProps> = ({
}}
>
{value &&
value.map(target => (
<Tag
key={`${target}`}
color="lightgrey"
variant="tag.rightmargin"
>
{trimNode(target)}
</Tag>
))}
value.map(target => {
const selector = trimNode(target);
return (
<Tag
key={`${target}`}
color="lightgrey"
variant="tag.rightmargin"
title={selector}
sx={{
display: 'block',
overflow: 'hidden',
maxWidth: '400px',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
}}
>
{selector}
</Tag>
);
})}
</Flex>
);
},
Expand Down

0 comments on commit 5ed1bb7

Please sign in to comment.