fix(immersive): improve background quality and polish UI

- Increase canvas blur size from 64x64 to 256x256 for smoother background
- Fix lyrics horizontal scroll by adding word-wrap and overflow-x: hidden
- Remove queue button from controls (use header tab instead)
- Add queue sync effect when immersive player is open

Addresses visual quality issues with pixelated background and long
German lyrics causing horizontal overflow.
This commit is contained in:
vicrodh committed 2026-01-30 16:40:20 -06:00
1 parent 07b7228538
commit 223a7f5e1d
5 files changed
+20 -23

No files matched your search

+6 -6
View File
@@ -2,8 +2,8 @@
* Optimized Image Blur Utility
*
* Pre-computes blurred background images for the immersive player.
* Uses a tiny canvas (64x64) which, when scaled up, produces the same
* visual effect as CSS blur(100px) but with near-zero GPU cost.
* Uses a small canvas (256x256) with blur which, when scaled up, produces
* a smooth background effect with minimal GPU cost.
*
* Performance comparison:
* - CSS blur(100px) on 600x600 image: ~15-30% GPU, constant
@@ -19,14 +19,14 @@ const MAX_CACHE_SIZE = 20;
* Returns a data URL that can be used as background-image.
*
* @param artworkUrl - The original artwork URL
* @param size - Output canvas size (default 64, higher = sharper blur edges)
* @param blurRadius - Canvas blur radius (default 8, effective ~100px at fullscreen)
* @param size - Output canvas size (default 256, higher = smoother result)
* @param blurRadius - Canvas blur radius (default 20, effective ~80px at fullscreen)
* @returns Promise<string> - Data URL of blurred image
*/
export async function generateBlurredBackground(
artworkUrl: string,
size: number = 64,
blurRadius: number = 8
size: number = 256,
blurRadius: number = 20
): Promise<string> {
// Check cache first
const cacheKey = `${artworkUrl}-${size}-${blurRadius}`;