cdechoch commited on
Commit
f9ea4b7
·
verified ·
1 Parent(s): e3a72f6

Update player.html

Browse files
Files changed (1) hide show
  1. player.html +14 -0
player.html CHANGED
@@ -49,6 +49,9 @@
49
  .mention-footer { margin-top: 12px; }
50
  .view-original { color: #f97316; text-decoration: none; font-size: 14px; font-weight: 500; }
51
  .view-original:hover { text-decoration: underline; }
 
 
 
52
  .related-section { background: white; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
53
  .related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
54
  .related-link { display: block; padding: 12px 15px; background: #f8f9fa; border-radius: 8px; text-decoration: none; color: #333; font-weight: 500; }
@@ -170,6 +173,16 @@
170
  if (!mentions.length) { document.getElementById('mentionsList').innerHTML = '<div class="empty-state"><h3>No mentions found</h3></div>'; return; }
171
  document.getElementById('mentionsList').innerHTML = mentions.map(m => {
172
  const avatarUrl = m.author_avatar || 'https://cdn.bsky.app/img/avatar/plain/did:plc:default/default@jpeg';
 
 
 
 
 
 
 
 
 
 
173
  return `
174
  <div class="mention-card">
175
  <div class="mention-header">
@@ -183,6 +196,7 @@
183
  <span class="mention-time">${timeAgo(m.created_at)}</span>
184
  </div>
185
  <div class="mention-text">${processText(m.text)}</div>
 
186
  <div class="mention-footer"><a href="${m.url}" target="_blank" class="view-original">View on Bluesky →</a></div>
187
  </div>
188
  `}).join('');
 
49
  .mention-footer { margin-top: 12px; }
50
  .view-original { color: #f97316; text-decoration: none; font-size: 14px; font-weight: 500; }
51
  .view-original:hover { text-decoration: underline; }
52
+ .quote-post { background: #f8f9fa; border-left: 3px solid #ddd; padding: 12px 15px; margin: 12px 0; border-radius: 0 8px 8px 0; }
53
+ .quote-author { font-weight: 600; font-size: 13px; color: #666; margin-bottom: 6px; }
54
+ .quote-text { font-size: 14px; line-height: 1.5; color: #555; }
55
  .related-section { background: white; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
56
  .related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
57
  .related-link { display: block; padding: 12px 15px; background: #f8f9fa; border-radius: 8px; text-decoration: none; color: #333; font-weight: 500; }
 
173
  if (!mentions.length) { document.getElementById('mentionsList').innerHTML = '<div class="empty-state"><h3>No mentions found</h3></div>'; return; }
174
  document.getElementById('mentionsList').innerHTML = mentions.map(m => {
175
  const avatarUrl = m.author_avatar || 'https://cdn.bsky.app/img/avatar/plain/did:plc:default/default@jpeg';
176
+ let quoteHtml = '';
177
+ if (m.quote_post && m.quote_post.text) {
178
+ const qAuthor = m.quote_post.author_name || m.quote_post.author_handle || 'Unknown';
179
+ quoteHtml = `
180
+ <div class="quote-post">
181
+ <div class="quote-author">↩ ${escapeHtml(qAuthor)}</div>
182
+ <div class="quote-text">${processText(m.quote_post.text)}</div>
183
+ </div>
184
+ `;
185
+ }
186
  return `
187
  <div class="mention-card">
188
  <div class="mention-header">
 
196
  <span class="mention-time">${timeAgo(m.created_at)}</span>
197
  </div>
198
  <div class="mention-text">${processText(m.text)}</div>
199
+ ${quoteHtml}
200
  <div class="mention-footer"><a href="${m.url}" target="_blank" class="view-original">View on Bluesky →</a></div>
201
  </div>
202
  `}).join('');