mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-05-24 12:35:05 +00:00
fix "invalid date" and show full date on hover
This commit is contained in:
parent
3b60f46002
commit
284b3cc9f2
2 changed files with 4 additions and 3 deletions
|
|
@ -11,4 +11,5 @@ Fixed:
|
|||
Improved:
|
||||
- Settings that have been changed from default will now show a line next to them. Inspired by the [Visual Studio Code settings UI](https://d33wubrfki0l68.cloudfront.net/d1f1ea4def506997ced23d3d912154794e530e1c/063d2/assets/img/blog/2020-09-17-vscode-settings/settings-ui.png)
|
||||
- Checkbox / Switch input styles are now more in line with other input styles
|
||||
- Available updates are now shown as a clickable button next to your user icon instead of having to open the user menu
|
||||
- Available updates are now shown as a clickable button next to your user icon instead of having to open the user menu
|
||||
- Hovering over the release date in the album info now shows the full date
|
||||
|
|
@ -435,7 +435,7 @@ waitForElement(["#main"], () => {
|
|||
/* js */
|
||||
async function getAlbumRelease(uri) {
|
||||
const info = await Spicetify.CosmosAsync.get(`hm://album/v1/album-app/album/${uri}/desktop`);
|
||||
return { year: info.year, month: info.month ?? 1, day: info.day ?? 1 };
|
||||
return { year: info.year, month: (info.month ?? 1) - 1, day: info.day ?? 1 };
|
||||
}
|
||||
|
||||
function isLight(hex) {
|
||||
|
|
@ -668,7 +668,7 @@ async function songchange() {
|
|||
</span>
|
||||
</span>
|
||||
`;
|
||||
const albumDateElem = `<span> • <span>${albumDate.format(moment().diff(albumDate, "months") <= 6 ? "MMM YYYY" : "YYYY")}</span></span>`;
|
||||
const albumDateElem = `<span> • <span title="${albumDate.format("L")}">${albumDate.format(moment().diff(albumDate, "months") <= 6 ? "MMM YYYY" : "YYYY")}</span></span>`;
|
||||
albumInfoSpan.innerHTML = `${albumLinkElem}${albumDateElem}`;
|
||||
} else if (Spicetify.Player.data.track.uri.includes("spotify:episode")) {
|
||||
// podcast
|
||||
|
|
|
|||
Loading…
Reference in a new issue