mirror of
https://github.com/cloudreve/frontend.git
synced 2025-12-25 19:52:48 +00:00
enhance(music player): fallback to default music note icon if thumb cannot be loaded (https://github.com/cloudreve/Cloudreve/issues/2384)
This commit is contained in:
parent
3deaf12878
commit
b3f4a0549b
|
|
@ -266,7 +266,7 @@ export const PlayerPopup = ({
|
|||
<Box sx={{ display: "flex", alignItems: "center" }}>
|
||||
<CoverImage>
|
||||
{!thumbSrc && <MusicNote1 fontSize={"large"} />}
|
||||
{thumbSrc && <img src={thumbSrc} alt="cover" />}
|
||||
{thumbSrc && <img src={thumbSrc} onError={() => setThumbSrc(null)} alt="cover" />}
|
||||
</CoverImage>
|
||||
<Box sx={{ ml: 1.5, minWidth: 0, maxWidth: "210px", width: "100%" }}>
|
||||
{file && file.metadata && file.metadata[Metadata.music_artist] && (
|
||||
|
|
|
|||
Loading…
Reference in New Issue