fix(ui): playlist navigation and title font sizes

- Fix clicking another playlist from sidebar while on playlist view
  (was not notifying listeners because view type hadn't changed)
- Use $effect to reload playlist data when playlistId prop changes
- Reduce playlist title from 48px to 24px
- Reduce album title from 26px to 24px
- Max font size is now 24px (same as home greeting)
This commit is contained in:
vicrodh committed 2026-01-11 18:43:37 -06:00
1 parent a9f80a15b0
commit 4d2fdce1aa
3 files changed
+15 -6

No files matched your search

@@ -291,7 +291,7 @@
}
.album-title {
font-size: 26px;
font-size: 24px;
font-weight: 700;
color: var(--text-primary);
margin-bottom: 4px;
@@ -4,7 +4,6 @@
import { writeText } from '@tauri-apps/plugin-clipboard-manager';
import { invoke } from '@tauri-apps/api/core';
import { open } from '@tauri-apps/plugin-dialog';
import { onMount } from 'svelte';
import TrackRow from '../TrackRow.svelte';
import { type DownloadStatus } from '$lib/stores/downloadState';
@@ -137,7 +136,10 @@
let customArtworkPath = $state<string | null>(null);
let showSortMenu = $state(false);
onMount(() => {
// Reload playlist when playlistId changes
$effect(() => {
// Access playlistId to create dependency
const id = playlistId;
loadPlaylist();
loadSettings();
loadLocalTracks();
@@ -841,11 +843,11 @@
}
.playlist-title {
font-size: 48px;
font-size: 24px;
font-weight: 700;
color: var(--text-primary);
margin: 0 0 8px 0;
line-height: 1.1;
line-height: 1.2;
}
.playlist-description {