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/search/AlbumResult.tsx

    rd85e8e3 rf5bc95e  
    11import { useNavigate } from "react-router-dom";
     2import { baseURL } from "../../api/axiosInstance";
    23import type { Album } from "../../utils/types";
    34
     
    1516                >
    1617                        <img
    17                                 src={album.cover || "/favicon.png"}
     18                                src={album.cover ? `${baseURL}/${album.cover}` : "/favicon.png"}
    1819                                alt={album.title}
    1920                                className="w-12 h-12 rounded object-cover"
     
    2526                                <p className="text-white font-medium truncate">{album.title}</p>
    2627                                <p className="text-sm text-gray-400 truncate">
    27                                         Album • {album.releasedBy} • {album.songs?.length ?? 0} songs
     28                                        Album • {album.releasedBy}
    2829                                </p>
    2930                        </div>
Note: See TracChangeset for help on using the changeset viewer.