major RBAC imrpovements + fix thumbnails

This commit is contained in:
KingKDot
2026-07-21 13:18:30 -05:00
parent 9b885ad2ef
commit d602de396e
23 changed files with 599 additions and 213 deletions
+9 -3
View File
@@ -516,13 +516,17 @@ export function createRenderer({
return;
}
const thumbImg = e.target.closest(".thumb-img");
if (thumbImg) {
const thumbHost = e.target.closest("[data-thumb-host]");
if (thumbHost) {
e.preventDefault();
e.stopPropagation();
if (card.dataset.online === "true") {
if (pingClient) pingClient(clientId);
requestThumbnail(clientId);
}
if (thumbImg.src) openModal(thumbImg.src);
const thumbImg = thumbHost.querySelector("img[data-thumb-img]");
const src = thumbImg?.currentSrc || thumbImg?.src || "";
if (src) openModal(src);
return;
}
@@ -1190,6 +1194,8 @@ export function createRenderer({
`;
return article;
}
setupGridDelegation();
return { renderMerge, setLayout };
}