Ignore:
Timestamp:
02/12/26 22:27:24 (5 months ago)
Author:
Filip Gavrilovski <filipgavrilovski28@…>
Branches:
main
Children:
85512ff
Parents:
d85e8e3
Message:

fix music cover ui bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • frontend/src/components/MiniPlayer.tsx

    rd85e8e3 rf5bc95e  
     1import { baseURL } from "../api/axiosInstance";
    12import { usePlayer } from "../context/playerContext";
    23
     
    2021                                        <div className="flex items-center gap-4">
    2122                                                <img
    22                                                         src={currentSong.cover || "/favicon.png"}
     23                                                        src={
     24                                                                currentSong.cover
     25                                                                        ? `${baseURL}/${currentSong.cover}`
     26                                                                        : "/favicon.png"
     27                                                        }
    2328                                                        alt={currentSong.title}
    2429                                                        className="w-12 h-12 rounded-lg object-cover shadow-lg"
     
    110115                                        <div className="flex items-center gap-3 min-w-0 flex-1">
    111116                                                <img
    112                                                         src={currentSong.cover || "/favicon.png"}
     117                                                        src={
     118                                                                currentSong.cover
     119                                                                        ? `${baseURL}/${currentSong.cover}`
     120                                                                        : "/favicon.png"
     121                                                        }
    113122                                                        alt={currentSong.title}
    114123                                                        className="w-10 h-10 rounded object-cover shrink-0"
Note: See TracChangeset for help on using the changeset viewer.