Drop results 'View' button; thumbnails are clickable for lightbox
This commit is contained in:
@@ -189,15 +189,11 @@ function renderResults() {
|
||||
<td>${r.total}</td>
|
||||
<td>
|
||||
${r.youtubeUrl ? `<a class="link compact" href="${r.youtubeUrl}" target="_blank" rel="noopener">YouTube ↗</a>` : ''}
|
||||
${r.screenshotUrl ? `<button class="thumb-open" data-img="${r.screenshotUrl}" aria-label="Open screenshot">View</button>` : ''}
|
||||
</td>
|
||||
`;
|
||||
tbody.appendChild(row);
|
||||
});
|
||||
container.appendChild(table);
|
||||
container.querySelectorAll(".thumb-open").forEach(btn => {
|
||||
btn.addEventListener("click", () => openLightbox(btn.dataset.img, "Screenshot"));
|
||||
});
|
||||
}
|
||||
|
||||
function setupHandlers() {
|
||||
|
||||
Reference in New Issue
Block a user