update ui webp export
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user