@motor-cms/ui-media 4.3.0 → 4.5.0

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.
@@ -32,10 +32,21 @@ columns.unshift({
32
32
  width: 'w-36'
33
33
  })
34
34
 
35
+ // Constrain description + filename so they wrap rather than forcing the
36
+ // table to horizontal-scroll on long unbroken filenames (ZRMDEV-221 follow-up).
37
+ const wrappingTextCell = {
38
+ width: 'max-w-xs',
39
+ class: 'whitespace-normal break-words'
40
+ }
41
+
35
42
  const descIdx = columns.findIndex(c => c.key === 'description')
43
+ if (descIdx >= 0) {
44
+ columns[descIdx] = { ...columns[descIdx], ...wrappingTextCell }
45
+ }
36
46
  columns.splice(descIdx + 1, 0, {
37
47
  key: 'file.file_name',
38
- label: t('motor-media.files.file_name')
48
+ label: t('motor-media.files.file_name'),
49
+ ...wrappingTextCell
39
50
  })
40
51
 
41
52
  columns.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@motor-cms/ui-media",
3
- "version": "4.3.0",
3
+ "version": "4.5.0",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "files": [