thibaud frere commited on
Commit
785a6c7
·
1 Parent(s): fc222e4

update banner image ratio

Browse files
Files changed (1) hide show
  1. app/src/content/embeds/banner.html +3 -1
app/src/content/embeds/banner.html CHANGED
@@ -278,7 +278,9 @@
278
 
279
  tipInner.innerHTML =
280
  `<div style="display:flex; gap:10px; align-items:flex-start;">` +
281
- `<img src="${imgSrc}" alt="thumb ${d.original_id}" style="width:120px;height:120px;object-fit:cover;flex:0 0 auto;border-radius:6px;border:1px solid var(--border-color);" />` +
 
 
282
  `<div style="min-width:140px; max-width:200px;">` +
283
  `<div><strong>${d.category || 'Unknown'}</strong></div>` +
284
  `<div style="word-wrap:break-word; line-height:1.3; margin:4px 0;"><strong>Q:</strong> ${userText}</div>` +
 
278
 
279
  tipInner.innerHTML =
280
  `<div style="display:flex; gap:10px; align-items:flex-start;">` +
281
+ `<div style="width:120px;height:120px;flex:0 0 auto;border-radius:6px;border:1px solid var(--border-color);display:flex;align-items:center;justify-content:center;overflow:hidden;background:var(--surface-bg);">` +
282
+ `<img src="${imgSrc}" alt="thumb ${d.original_id}" style="max-width:100%;max-height:100%;object-fit:contain;display:block;" />` +
283
+ `</div>` +
284
  `<div style="min-width:140px; max-width:200px;">` +
285
  `<div><strong>${d.category || 'Unknown'}</strong></div>` +
286
  `<div style="word-wrap:break-word; line-height:1.3; margin:4px 0;"><strong>Q:</strong> ${userText}</div>` +