update ui webp export

This commit is contained in:
2026-03-12 21:01:32 -07:00
parent 9da3ccf678
commit aa3f23c92c
10 changed files with 741 additions and 240 deletions

View File

@@ -51,6 +51,7 @@
normalizeTarotCardLookupName: (value) => String(value || "").trim().toLowerCase(),
selectCardById: () => {},
openCardLightbox: () => {},
shouldOpenCardLightboxOnSelect: () => false,
isHouseFocusMode: () => false,
getCards: () => [],
getSelectedCardId: () => "",
@@ -730,8 +731,11 @@
}
button.addEventListener("click", () => {
const shouldOpenLightbox = Boolean(config.isHouseFocusMode?.())
|| Boolean(config.shouldOpenCardLightboxOnSelect?.(elements, card));
config.selectCardById(card.id, elements);
if (config.isHouseFocusMode?.() === true && imageUrl) {
if (shouldOpenLightbox && imageUrl) {
config.openCardLightbox?.(
imageUrl,
cardDisplayName || card.name || "Tarot card enlarged image",