replaced track info string map with a struct

This commit is contained in:
2026-02-24 15:39:54 -05:00
parent d764fefb10
commit 768a8cf1f2
15 changed files with 399 additions and 1314 deletions
@@ -2,6 +2,7 @@ import { LitElement, html, css, nothing } from 'lit';
import { customElement, state } from 'lit/decorators.js';
import '@awesome.me/webawesome/dist/components/icon/icon.js';
import '@awesome.me/webawesome/dist/components/popup/popup.js';
import type WaPopup from '@awesome.me/webawesome/dist/components/popup/popup.js';
import { PlayerController } from '@store/controllers/player-controller';
const MIN_WIDTH = 120;
@@ -220,15 +221,16 @@ export class NowPlaying extends LitElement {
this.showCoverPreview = true;
this.updateComplete.then(() => {
const popup = this.shadowRoot?.querySelector(
'#cover-preview',
);
const popup =
this.shadowRoot?.querySelector<WaPopup>(
'#cover-preview',
);
const anchor = this.shadowRoot?.querySelector(
'.cover-art',
);
if (popup && anchor) {
(popup as any).anchor = anchor;
popup.anchor = anchor;
}
});
};