Spaces:
Running
Running
thibaud frere
commited on
Commit
·
785a6c7
1
Parent(s):
fc222e4
update banner image ratio
Browse files
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 |
-
`<
|
|
|
|
|
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>` +
|