truncate and show ellipsis for content outside of cell bounds

This commit is contained in:
dannyrb 2020-05-11 21:19:41 -04:00 committed by James A. Petts
parent 1b9c0fcfae
commit 8dac6d7318

View File

@ -51,26 +51,14 @@ const StudyListTableRow = props => {
textOverflow: 'ellipsis', textOverflow: 'ellipsis',
whiteSpace: 'nowrap', whiteSpace: 'nowrap',
}} }}
>
<div
className="flex flex-row items-center pl-1"
style={{
width: '100%',
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
}}
> >
{index === 0 && ( {index === 0 && (
<Icon <Icon
name={ name={isExpanded ? 'chevron-down' : 'chevron-right'}
isExpanded ? 'chevron-down' : 'chevron-right' className="mr-4 inline-flex"
}
className="mr-4"
/> />
)} )}
{content} {content}
</div>
</td> </td>
); );
})} })}