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/pages/SongDetail.tsx

    rd85e8e3 rf5bc95e  
    22import { Link, useParams } from "react-router-dom";
    33import { toast } from "react-toastify";
    4 import axiosInstance from "../api/axiosInstance";
     4import axiosInstance, { baseURL } from "../api/axiosInstance";
    55import { useAuth } from "../context/authContext";
    66import { usePlayer } from "../context/playerContext";
     
    216216                                                <div className="relative w-full pt-[100%] rounded-xl overflow-hidden shadow-2xl bg-[#181818]">
    217217                                                        <img
    218                                                                 src={song.cover || "/favicon.png"}
     218                                                                src={song.cover ? `${baseURL}/${song.cover}` : "/favicon.png"}
    219219                                                                alt={song.title}
    220220                                                                className="absolute inset-0 w-full h-full object-cover"
Note: See TracChangeset for help on using the changeset viewer.