From 787f3fd33b0f1828283fe6ec4e5f55623cde96c8 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 19 Jun 2022 17:57:09 +0200 Subject: Update --- assets/css/layouts/_card-list.scss | 8 ++++---- content/lightbox.js | 8 ++------ templates/layouts/exhibit.html | 4 +++- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/assets/css/layouts/_card-list.scss b/assets/css/layouts/_card-list.scss index 92c89b7..0c06adc 100644 --- a/assets/css/layouts/_card-list.scss +++ b/assets/css/layouts/_card-list.scss @@ -13,15 +13,15 @@ ), --grid-3: ( --gap: fn.global-dim(--size --75), - --col-width: fn.global-dim(--size --2400), + --col-width: fn.global-dim(--size --2800), ), --gallery-2: ( - --gap: fn.global-dim(--size --200), + --gap: fn.global-dim(--size --150), --col-width: fn.global-dim(--size --3200), ), --gallery-3: ( - --gap: fn.global-dim(--size --200), - --col-width: fn.global-dim(--size --2400), + --gap: fn.global-dim(--size --150), + --col-width: fn.global-dim(--size --2800), ), ) ), 'dims'); diff --git a/content/lightbox.js b/content/lightbox.js index deb5cce..39a5074 100644 --- a/content/lightbox.js +++ b/content/lightbox.js @@ -39,13 +39,9 @@ images[i].thumbnailEl.classList.add("is-selected"); }; - const prev = () => { - setIndex(currentIndex > 0 ? currentIndex - 1 : figureEls.length - 1); - }; + const prev = () => setIndex(currentIndex > 0 ? currentIndex - 1 : figureEls.length - 1); - const next = () => { - setIndex(currentIndex < figureEls.length - 1 ? currentIndex + 1 : 0); - }; + const next = () => setIndex(currentIndex < figureEls.length - 1 ? currentIndex + 1 : 0); lightboxCloseEl?.addEventListener("click", hide); lightboxPrevEl.addEventListener("click", prev); diff --git a/templates/layouts/exhibit.html b/templates/layouts/exhibit.html index 7e45298..1ef3bff 100644 --- a/templates/layouts/exhibit.html +++ b/templates/layouts/exhibit.html @@ -48,8 +48,10 @@
- -- cgit v1.2.3-70-g09d2