Skip to content

Commit

Permalink
Fix for cases when long URLs push images to the next line (#137)
Browse files Browse the repository at this point in the history
* fix for cases when long URLs push img to the next line

* format
  • Loading branch information
trean authored Dec 28, 2023
1 parent 1870621 commit 98cbe68
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/Points/DataGridList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ export const DataGridList = function ({ data = {}, specialCases = {} }) {

{/* other types of values */}
{typeof data[key] !== 'object' && !specialKeys.includes(key) && (
<Typography variant="subtitle1" color="text.secondary" display={'inline'}>
<Typography
variant="subtitle1"
color="text.secondary"
display={'inline'}
sx={{ wordBreak: 'break-word' }}
>
{'\t'} {data[key].toString()}
</Typography>
)}
Expand Down

0 comments on commit 98cbe68

Please sign in to comment.