Skip to content

Commit

Permalink
✨ feat(status bar): show artists name
Browse files Browse the repository at this point in the history
Signed-off-by: YXL <[email protected]>

#971
  • Loading branch information
YXL76 committed Apr 14, 2024
1 parent fbbc4a9 commit 2eb408e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/src/manager/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class ButtonManager {
} else {
const item = "mainSong" in ele.data ? ele.data.mainSong : ele.data;
const ars = item.ar.map(({ name }) => name).join("/");
this.#buttons[Label.song].text = item.name;
this.#buttons[Label.song].text = ars ? `${item.name}-${ars}` : item.name;
this.#mdSong = `<table><tr><th align="center">${item.name}</th></tr><tr><td align="center">${ars}</td></tr><tr><td align="center">${ele.tooltip}</td></tr><tr><td align="center"><img src="${item.al.picUrl}" alt="${item.al.name}" width="384"/></td></tr><tr><td align="center">`;
}

Expand Down

0 comments on commit 2eb408e

Please sign in to comment.