truncate and show ellipsis for content outside of cell bounds

This commit is contained in:
dannyrb authored and James A. Petts committed 2020-05-15 14:01:59 +02:00
1 parent 1b9c0fcfae
commit 8dac6d7318
1 file changed
+7 -19
@@ -52,25 +52,13 @@ const StudyListTableRow = props => {
whiteSpace: 'nowrap',
}}
>
<div
className="flex flex-row items-center pl-1"
style={{
width: '100%',
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
}}
>
{index === 0 && (
<Icon
name={
isExpanded ? 'chevron-down' : 'chevron-right'
}
className="mr-4"
/>
)}
{content}
</div>
{index === 0 && (
<Icon
name={isExpanded ? 'chevron-down' : 'chevron-right'}
className="mr-4 inline-flex"
/>
)}
{content}
</td>
);
})}