@christianriedl/media 1.0.144 → 1.0.145

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@christianriedl/media",
3
- "version": "1.0.144",
3
+ "version": "1.0.145",
4
4
  "description": "RIC media interfaces",
5
5
 
6
6
  "main": "dist/index.js",
@@ -89,7 +89,7 @@
89
89
  if (folder.CreatorIdx >= 0) {
90
90
  const pictureLocations = mediaService.pictureLocation;
91
91
  if (folder.altColor) {
92
- if (appConfig.theme === 'dark')
92
+ if (appConfig.theme !== 'light')
93
93
  classes.push('altColorDark');
94
94
  else
95
95
  classes.push('altColorLight')
@@ -207,7 +207,7 @@
207
207
  nameLength = 12; // Person
208
208
  else {
209
209
  //nameLength = 32; // Album
210
- if (folder.Folders && folder.Folders[0].ItemType == EItemType.PictureAlbum) {
210
+ if (folder.Folders && folder.Folders.length > 0 && folder.Folders[0].ItemType == EItemType.PictureAlbum) {
211
211
  showAlbums.value = true;
212
212
  return 12;
213
213
  }