@applica-software-guru/react-admin 1.5.365 → 1.5.366

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -108,5 +108,5 @@
108
108
  "type": "module",
109
109
  "types": "dist/index.d.ts",
110
110
  "typings": "dist/index.d.ts",
111
- "version": "1.5.365"
111
+ "version": "1.5.366"
112
112
  }
@@ -268,7 +268,20 @@ function NavCollapse({
268
268
  {drawerOpen || (!drawerOpen && level !== 1) ? (
269
269
  <ListItemText
270
270
  primary={
271
- <Typography variant="h6" color={selected === menu.id ? 'primary' : textColor}>
271
+ <Typography
272
+ variant="h6"
273
+ color={selected === menu.id ? 'primary' : textColor}
274
+ sx={{
275
+ overflow: 'hidden',
276
+ textOverflow: 'ellipsis',
277
+ wordBreak: 'break-word',
278
+ overflowWrap: 'break-word',
279
+ whiteSpace: 'normal',
280
+ display: '-webkit-box',
281
+ WebkitBoxOrient: 'vertical',
282
+ WebkitLineClamp: 2
283
+ }}
284
+ >
272
285
  {menu.title}
273
286
  </Typography>
274
287
  }
@@ -378,7 +391,21 @@ function NavCollapse({
378
391
  )}
379
392
  <ListItemText
380
393
  primary={
381
- <Typography variant="body1" color="inherit" sx={{ my: 'auto' }}>
394
+ <Typography
395
+ variant="body1"
396
+ color="inherit"
397
+ sx={{
398
+ my: 'auto',
399
+ overflow: 'hidden',
400
+ textOverflow: 'ellipsis',
401
+ wordBreak: 'break-word',
402
+ overflowWrap: 'break-word',
403
+ whiteSpace: 'normal',
404
+ display: '-webkit-box',
405
+ WebkitBoxOrient: 'vertical',
406
+ WebkitLineClamp: 2
407
+ }}
408
+ >
382
409
  {menu.title}
383
410
  </Typography>
384
411
  }
@@ -274,6 +274,16 @@ function NavGroup({
274
274
  <Typography
275
275
  variant="body1"
276
276
  color={selectedID === currentItem.id ? theme.palette.primary.main : theme.palette.secondary.dark}
277
+ sx={{
278
+ overflow: 'hidden',
279
+ textOverflow: 'ellipsis',
280
+ wordBreak: 'break-word',
281
+ overflowWrap: 'break-word',
282
+ whiteSpace: 'normal',
283
+ display: '-webkit-box',
284
+ WebkitBoxOrient: 'vertical',
285
+ WebkitLineClamp: 2
286
+ }}
277
287
  >
278
288
  {currentItem.id === lastItemId ? translate('ra.actions.more') : currentItem.title}
279
289
  </Typography>
@@ -121,7 +121,20 @@ function NavItem({ item, level }: NavItemProps) {
121
121
  {drawerOpen || (!drawerOpen && level !== 1) ? (
122
122
  <ListItemText
123
123
  primary={
124
- <Typography variant="h6" sx={{ color: isSelected ? iconSelectedColor : textColor }}>
124
+ <Typography
125
+ variant="h6"
126
+ sx={{
127
+ color: isSelected ? iconSelectedColor : textColor,
128
+ overflow: 'hidden',
129
+ textOverflow: 'ellipsis',
130
+ wordBreak: 'break-word',
131
+ overflowWrap: 'break-word',
132
+ whiteSpace: 'normal',
133
+ display: '-webkit-box',
134
+ WebkitBoxOrient: 'vertical',
135
+ WebkitLineClamp: 2
136
+ }}
137
+ >
125
138
  {item.title}
126
139
  </Typography>
127
140
  }