Skip to content

Commit

Permalink
fix description tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
Seddik Yengui committed Jan 9, 2024
1 parent f4f8d3c commit e1a0b03
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/components/directory-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ const styles = {
tooltip: {
maxWidth: '1000px',
},
descriptionTooltip: {
display: 'inline-block',
whiteSpace: 'pre',
textOverflow: 'ellipsis',
overflow: 'hidden',
maxWidth: '250px',
maxHeight: '50px',
},
};

const initialMousePosition = {
Expand Down Expand Up @@ -440,12 +448,9 @@ const DirectoryContent = () => {
<Box sx={styles.cell}>
<Tooltip
title={
<OverflowableText
text={description}
sx={{
maxWidth: '250px',
maxHeight: '50px',
}}
<Box
children={description}
sx={styles.descriptionTooltip}
/>
}
placement="right"
Expand Down

0 comments on commit e1a0b03

Please sign in to comment.