fix(ui): fix settings layout and add detailed logging

UI Fix:
- Add :has(.radio-group) rule to allow flexible height
- Set align-items: flex-start for radio group rows
- Prevents radio buttons from being squashed

Logging Enhancement:
- Log autoplay_mode preference value
- Log track index and total tracks
- Log when no album tracks found
- Will help diagnose why context isn't being created

cp
This commit is contained in:
vicrodh committed 2026-01-18 01:53:21 -06:00
1 parent f2891c2071
commit f69a7ab461
2 files changed
+13

No files matched your search

@@ -2098,6 +2098,13 @@
padding: 12px 0; padding: 12px 0;
} }
.setting-row:has(.radio-group) {
height: auto;
min-height: 48px;
padding: 12px 0;
align-items: flex-start;
}
.setting-value { .setting-value {
font-size: 14px; font-size: 14px;
color: var(--text-muted); color: var(--text-muted);
+6
View File
@@ -600,12 +600,16 @@
// Check autoplay preference and create/clear context // Check autoplay preference and create/clear context
const prefs = getCachedPreferences(); const prefs = getCachedPreferences();
console.log('[Album] Autoplay preference:', prefs.autoplay_mode);
if (selectedAlbum?.tracks) { if (selectedAlbum?.tracks) {
const trackIndex = selectedAlbum.tracks.findIndex(t => t.id === track.id); const trackIndex = selectedAlbum.tracks.findIndex(t => t.id === track.id);
console.log('[Album] Track index:', trackIndex, 'of', selectedAlbum.tracks.length);
if (prefs.autoplay_mode === 'continue') { if (prefs.autoplay_mode === 'continue') {
// Create album context // Create album context
const trackIds = selectedAlbum.tracks.map(t => t.id); const trackIds = selectedAlbum.tracks.map(t => t.id);
console.log('[Album] Creating context with', trackIds.length, 'tracks, starting at', trackIndex);
await setPlaybackContext( await setPlaybackContext(
'album', 'album',
selectedAlbum.id, selectedAlbum.id,
@@ -620,6 +624,8 @@
await clearPlaybackContext(); await clearPlaybackContext();
console.log('[Album] Context cleared for single track playback'); console.log('[Album] Context cleared for single track playback');
} }
} else {
console.log('[Album] No album tracks found, cannot create context');
} }
const artwork = selectedAlbum?.artwork || ''; const artwork = selectedAlbum?.artwork || '';