Skip to content

🎧 Your Personal Streaming Service

fix(ui): playlist details overflow in spotify-based themes (#4184)

Deluan Quintão7d1f5ddf0690
diff --git a/ui/src/themes/nord.js b/ui/src/themes/nord.js
index 8c346eefe..5420bbc60 100644
--- a/ui/src/themes/nord.js
+++ b/ui/src/themes/nord.js
@@ -259,7 +259,6 @@ export default {
},
details: {
fontSize: '.875rem',
- minWidth: '75vw',
color: 'rgba(255,255,255, 0.8)',
},
},
diff --git a/ui/src/themes/spotify.js b/ui/src/themes/spotify.js
index 703d8159e..980183759 100644
--- a/ui/src/themes/spotify.js
+++ b/ui/src/themes/spotify.js
@@ -204,7 +204,6 @@ export default {
},
details: {
fontSize: '.875rem',
- minWidth: '75vw',
color: 'rgba(255,255,255, 0.8)',
},
},
diff --git a/ui/src/themes/theme.test.js b/ui/src/themes/theme.test.js
new file mode 100644
index 000000000..b65c3a5fe
--- /dev/null
+++ b/ui/src/themes/theme.test.js
@@ -0,0 +1,14 @@
+import themes from './index'
+import { describe, it, expect } from 'vitest'
+
+describe('NDPlaylistDetails styles', () => {
+ const themeEntries = Object.entries(themes)
+
+ it.each(themeEntries)(
+ '%s should not set minWidth on details',
+ (themeName, theme) => {
+ const details = theme.overrides?.NDPlaylistDetails?.details
+ expect(details?.minWidth).toBeUndefined()
+ },
+ )
+})