BUG (v2): flip-card with multiple images — extra images unreachable #5
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug (live on https://post.msbls.de)
On a Wendekarte (flip layout) with more than one image, only the FIRST image shows on the front. There's an indicator top-right hinting at more images, but it does nothing — the other images can't be viewed. So additional images on a flip card are effectively inaccessible.
m, verbatim: "Und wenn mehrere Bilder sind auf einer Wendekarte... wie sehe ich die? Bisher wird nur das erste angezeigt mit nem Indikator oben rechts für andere... aber zeigt nichts."
Repro
Expected
All images on a flip card must be viewable. The front should become a swipeable/tappable carousel (top-right dots/indicator should advance through images, or be tappable; swipe to change image), while flip-to-back (text) still works.
Key constraint — gesture conflict: the flip gesture and the image-advance gesture must not collide. Pick the cleanest interaction, e.g. tap-to-flip + swipe-to-change-image, or explicit arrows/dots for images + a distinct flip control. Make it obvious and mobile-friendly.
Scope
Rendering/interaction only (postcard.html + style.css + any minimal JS) — the images already persist correctly (gallery layout shows them all; only flip is broken). No schema change expected.
DoD
#5 behoben — Wendekarte mit mehreren Bildern
Die Vorderseite der Wendekarte ist jetzt ein wischbares Karussell (horizontaler scroll-snap, ein Foto pro Ansicht). Alle Bilder sind erreichbar — auch ganz ohne JavaScript per Wischen.
Was geändert wurde (Render/CSS/minimal-JS, kein Schema-Change):
index 0; jetzt rendert sie alle Bilder als.flip-slide-Karussell..img-badge/.flip-hintentfernt.prefers-reduced-motionweiterhin respektiert.Verifikation:
go build/go vet/go test ./...grün.render_test.goprüft jetzt, dass eine Flip-Karte mit N Bildern N Slides + N Punkte rendert (Regressions-Guard).DELETE 1).Commit: https://mgit.msbls.de/m/postcards/commit/39f048a
Branch:
mai/hermes/issue-3-postcards-custom(gemeinsamer Branch mit #3/#4; dieser Commit ist sauber separat und kann einzeln gemerged/deployed werden).#3 (Custom-URL via Shlink) und #4 (Broadcast-Modus) folgen auf demselben Branch.
✅ Fixed & live on https://post.msbls.de
Merged
39f048a(in merge408b276), deployed viaapplication.deploy. The flip-card front is now a swipeable scroll-snap carousel with functional position dots, and flipping moved to a distinct button — so swipe (change image) and flip (to text) no longer conflict. Works without JS via swipe; dots are progressively enhanced.Verified live: flip card with 2 images → multiple carousel slides + dots present, all images reachable, HTTP 200. Test data cleaned. Not closing — m closes.