update app/ui-tarot-lightbox.js
This commit is contained in:
@@ -1597,14 +1597,6 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mobilePrevButtonEl.parentElement !== overlayEl) {
|
|
||||||
overlayEl.appendChild(mobilePrevButtonEl);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (mobileNextButtonEl.parentElement !== overlayEl) {
|
|
||||||
overlayEl.appendChild(mobileNextButtonEl);
|
|
||||||
}
|
|
||||||
|
|
||||||
const canNavigate = Boolean(
|
const canNavigate = Boolean(
|
||||||
lightboxState.isOpen
|
lightboxState.isOpen
|
||||||
&& isCompactLightboxLayout()
|
&& isCompactLightboxLayout()
|
||||||
@@ -1631,7 +1623,70 @@
|
|||||||
mobilePrevButtonEl.style.font = isCompact ? "800 26px/1 sans-serif" : "700 20px/1 sans-serif";
|
mobilePrevButtonEl.style.font = isCompact ? "800 26px/1 sans-serif" : "700 20px/1 sans-serif";
|
||||||
mobileNextButtonEl.style.font = isCompact ? "800 26px/1 sans-serif" : "700 20px/1 sans-serif";
|
mobileNextButtonEl.style.font = isCompact ? "800 26px/1 sans-serif" : "700 20px/1 sans-serif";
|
||||||
|
|
||||||
|
if (isCompact && canNavigate && toolbarEl instanceof HTMLElement) {
|
||||||
|
toolbarEl.style.display = "grid";
|
||||||
|
toolbarEl.style.gridTemplateColumns = "60px minmax(0, auto) 60px";
|
||||||
|
toolbarEl.style.columnGap = "12px";
|
||||||
|
toolbarEl.style.justifyContent = "stretch";
|
||||||
|
toolbarEl.style.justifyItems = "center";
|
||||||
|
toolbarEl.style.alignItems = "center";
|
||||||
|
|
||||||
|
if (mobilePrevButtonEl.parentElement !== toolbarEl) {
|
||||||
|
toolbarEl.insertBefore(mobilePrevButtonEl, settingsButtonEl || null);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mobileNextButtonEl.parentElement !== toolbarEl) {
|
||||||
|
toolbarEl.appendChild(mobileNextButtonEl);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (settingsButtonEl instanceof HTMLElement) {
|
||||||
|
settingsButtonEl.style.gridColumn = "2";
|
||||||
|
settingsButtonEl.style.justifySelf = "center";
|
||||||
|
}
|
||||||
|
|
||||||
|
mobilePrevButtonEl.style.position = "relative";
|
||||||
|
mobileNextButtonEl.style.position = "relative";
|
||||||
|
mobilePrevButtonEl.style.top = "auto";
|
||||||
|
mobileNextButtonEl.style.top = "auto";
|
||||||
|
mobilePrevButtonEl.style.right = "auto";
|
||||||
|
mobileNextButtonEl.style.right = "auto";
|
||||||
|
mobilePrevButtonEl.style.left = "auto";
|
||||||
|
mobileNextButtonEl.style.left = "auto";
|
||||||
|
mobilePrevButtonEl.style.bottom = "auto";
|
||||||
|
mobileNextButtonEl.style.bottom = "auto";
|
||||||
|
mobilePrevButtonEl.style.gridColumn = "1";
|
||||||
|
mobileNextButtonEl.style.gridColumn = "3";
|
||||||
|
mobilePrevButtonEl.style.justifySelf = "start";
|
||||||
|
mobileNextButtonEl.style.justifySelf = "end";
|
||||||
|
mobilePrevButtonEl.style.alignSelf = "center";
|
||||||
|
mobileNextButtonEl.style.alignSelf = "center";
|
||||||
|
mobilePrevButtonEl.style.transform = "none";
|
||||||
|
mobileNextButtonEl.style.transform = "none";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mobilePrevButtonEl.parentElement !== overlayEl) {
|
||||||
|
overlayEl.appendChild(mobilePrevButtonEl);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mobileNextButtonEl.parentElement !== overlayEl) {
|
||||||
|
overlayEl.appendChild(mobileNextButtonEl);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (toolbarEl instanceof HTMLElement) {
|
||||||
|
toolbarEl.style.gridTemplateColumns = "";
|
||||||
|
toolbarEl.style.columnGap = "";
|
||||||
|
toolbarEl.style.justifyItems = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (settingsButtonEl instanceof HTMLElement) {
|
||||||
|
settingsButtonEl.style.gridColumn = "";
|
||||||
|
settingsButtonEl.style.justifySelf = "";
|
||||||
|
}
|
||||||
|
|
||||||
if (!canNavigate) {
|
if (!canNavigate) {
|
||||||
|
mobilePrevButtonEl.style.position = "fixed";
|
||||||
|
mobileNextButtonEl.style.position = "fixed";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1673,6 +1728,8 @@
|
|||||||
? toolbarBottom
|
? toolbarBottom
|
||||||
: `${toolbarHeight + floatingPanelHeight + (mobileInfoPanelVisible ? infoPanelHeight + 32 : 24)}px`;
|
: `${toolbarHeight + floatingPanelHeight + (mobileInfoPanelVisible ? infoPanelHeight + 32 : 24)}px`;
|
||||||
|
|
||||||
|
mobilePrevButtonEl.style.position = "fixed";
|
||||||
|
mobileNextButtonEl.style.position = "fixed";
|
||||||
mobilePrevButtonEl.style.top = "auto";
|
mobilePrevButtonEl.style.top = "auto";
|
||||||
mobileNextButtonEl.style.top = "auto";
|
mobileNextButtonEl.style.top = "auto";
|
||||||
mobilePrevButtonEl.style.bottom = isCompact ? bottomOffset : bottomOffset;
|
mobilePrevButtonEl.style.bottom = isCompact ? bottomOffset : bottomOffset;
|
||||||
@@ -2073,7 +2130,6 @@
|
|||||||
syncDeckComparePicker();
|
syncDeckComparePicker();
|
||||||
syncComparePanels();
|
syncComparePanels();
|
||||||
syncMobileInfoControls();
|
syncMobileInfoControls();
|
||||||
syncMobileNavigationControls();
|
|
||||||
|
|
||||||
if (lightboxState.deckCompareMode) {
|
if (lightboxState.deckCompareMode) {
|
||||||
overlayEl.style.pointerEvents = "none";
|
overlayEl.style.pointerEvents = "none";
|
||||||
@@ -2187,6 +2243,7 @@
|
|||||||
secondaryInfoEl.style.display = "none";
|
secondaryInfoEl.style.display = "none";
|
||||||
applyZoomTransform();
|
applyZoomTransform();
|
||||||
setOverlayOpacity(lightboxState.overlayOpacity);
|
setOverlayOpacity(lightboxState.overlayOpacity);
|
||||||
|
syncMobileNavigationControls();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2238,6 +2295,7 @@
|
|||||||
overlayImageEl.style.display = "none";
|
overlayImageEl.style.display = "none";
|
||||||
secondaryInfoEl.style.display = "none";
|
secondaryInfoEl.style.display = "none";
|
||||||
applyZoomTransform();
|
applyZoomTransform();
|
||||||
|
syncMobileNavigationControls();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2333,6 +2391,7 @@
|
|||||||
|
|
||||||
applyZoomTransform();
|
applyZoomTransform();
|
||||||
setOverlayOpacity(lightboxState.overlayOpacity);
|
setOverlayOpacity(lightboxState.overlayOpacity);
|
||||||
|
syncMobileNavigationControls();
|
||||||
}
|
}
|
||||||
|
|
||||||
function resetZoom() {
|
function resetZoom() {
|
||||||
|
|||||||
+1
-1
@@ -1331,7 +1331,7 @@
|
|||||||
<script src="app/data-service.js?v=20260601-now-polling-03"></script>
|
<script src="app/data-service.js?v=20260601-now-polling-03"></script>
|
||||||
<script src="app/calendar-events.js"></script>
|
<script src="app/calendar-events.js"></script>
|
||||||
<script src="app/card-images.js?v=20260527-tarot-deck-gallery-01"></script>
|
<script src="app/card-images.js?v=20260527-tarot-deck-gallery-01"></script>
|
||||||
<script src="app/ui-tarot-lightbox.js?v=20260528-tarot-variant-sequence-02"></script>
|
<script src="app/ui-tarot-lightbox.js?v=20260608-tarot-lightbox-mobile-nav-03"></script>
|
||||||
<script src="app/ui-tarot-house.js?v=20260401-house-top-date-01"></script>
|
<script src="app/ui-tarot-house.js?v=20260401-house-top-date-01"></script>
|
||||||
<script src="app/ui-tarot-relations.js"></script>
|
<script src="app/ui-tarot-relations.js"></script>
|
||||||
<script src="app/ui-now-helpers.js?v=20260314-now-planets-grid-01"></script>
|
<script src="app/ui-now-helpers.js?v=20260314-now-planets-grid-01"></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user