Update AudioPlayer and FullScreenPlayer for improved mobile audio handling; refactor WhatsNewPopup for better dialog structure; clean up LoginForm by removing unused settings

This commit is contained in:
2025-07-25 22:49:52 +00:00
committed by GitHub
parent 1dfb86fa15
commit 23d6f48ee1
5 changed files with 181 additions and 134 deletions

View File

@@ -148,7 +148,7 @@ export const FullScreenPlayer: React.FC<FullScreenPlayerProps> = ({ isOpen, onCl
// Only reset scroll on desktop to avoid iOS audio interference
const shouldReset = !isMobile && showLyrics && lyrics.length > 0;
if (currentTrack && shouldReset && lyricsRef.current) {
if (currentTrack?.id && shouldReset && lyricsRef.current) {
const resetTimeout = setTimeout(() => {
try {
const scrollContainer = lyricsRef.current?.querySelector('[data-radix-scroll-area-viewport]') as HTMLElement;