Add persistent gallery card ratio switch
All checks were successful
Deploy Sokko G / deploy (push) Successful in 18s

This commit is contained in:
Shinuwa 2026-09-28 10:09:58 +02:00
parent bd4059c9c1
commit 3f86d863ac
10 changed files with 72 additions and 10 deletions

View file

@ -361,6 +361,9 @@ export function validateSiteContent(site) {
"toolboxes.modules.images.galleryZoomLabel",
"toolboxes.modules.images.galleryZoomOutTitle",
"toolboxes.modules.images.galleryZoomInTitle",
"toolboxes.modules.images.galleryRatioLabel",
"toolboxes.modules.images.galleryRatioSquareTitle",
"toolboxes.modules.images.galleryRatioLandscapeTitle",
"toolboxes.modules.images.previousImageTitle",
"toolboxes.modules.images.nextImageTitle",
"toolboxes.modules.images.positionLabel",

View file

@ -469,6 +469,9 @@ test("toolbox module registry and modules expose expected behavior", async () =>
assert.match(imageViewer, /sokkog:image-gallery-thumbnail-width/);
assert.match(imageViewer, /galleryZoomOutTitle/);
assert.match(imageViewer, /galleryZoomInTitle/);
assert.match(imageViewer, /sokkog:image-gallery-card-ratio/);
assert.match(imageViewer, /galleryRatioSquareTitle/);
assert.match(imageViewer, /galleryRatioLandscapeTitle/);
assert.match(imageGallery, /image-viewer-gallery-item/);
assert.match(moduleEmptyMessage, /toolbox-module-empty/);
});