feat(sync): implement end-to-end media title synchronization

This commit is contained in:
MacBook
2026-04-22 18:29:53 +02:00
parent e40e2e5101
commit 67f872ffd2
3 changed files with 21 additions and 7 deletions
+9 -2
View File
@@ -241,10 +241,17 @@ function updatePeerList(peers) {
peerItem.appendChild(header);
if (p.mediaTitle) {
const mediaDiv = document.createElement('div');
mediaDiv.style.cssText = 'font-size:11px; color:var(--star); font-weight: 600; margin-top: 2px;';
mediaDiv.textContent = `🎬 ${p.mediaTitle}`;
peerItem.appendChild(mediaDiv);
}
if (pTabTitle) {
const titleDiv = document.createElement('div');
titleDiv.style.cssText = 'font-size:10px; color:var(--text-muted);';
titleDiv.textContent = pTabTitle;
titleDiv.style.cssText = 'font-size:10px; color:var(--text-muted); opacity: 0.8;';
titleDiv.textContent = p.mediaTitle ? `via ${pTabTitle}` : pTabTitle;
peerItem.appendChild(titleDiv);
}