mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 19:41:09 +02:00
Picture.ListView's full-screen image modal (~70 lines of inline markup) grew a second caller: the new Anproben-Strip on the wardrobe garment detail page. Linking to `target="_blank"` was a placeholder — the user expects the same inline viewer Picture uses. Extract the lightbox into $lib/modules/picture/components/ImageLightbox.svelte. Picture keeps ownership because the component speaks prompt/model/dims vocabulary against `picture.types.Image`. Module-specific controls go through an `actions` snippet so each caller wires only what makes sense: - Picture ListView renders Favorit + Archivieren in its action slot (unchanged behaviour, shorter file). - Wardrobe DetailGarmentView renders a single "In Picture öffnen" deep-link — Wardrobe doesn't own Favorit/Archiv semantics, the user navigates to Picture for those. Keeps the back-ref clean: every generated image lives in Picture, Wardrobe just previews. Base lightbox handles: - Fixed overlay with backdrop click-to-close - Escape key to close - Image + prompt + model + dimensions + date - Default Schließen button - Fallback icon when publicUrl is missing No logic change for existing users of Picture; one fewer dead target="_blank" tab for Wardrobe. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| calc/packages/shared | ||
| calendar | ||
| cards | ||
| chat | ||
| citycorners | ||
| contacts | ||
| context | ||
| docs | ||
| food | ||
| guides | ||
| inventory | ||
| mana | ||
| manavoxel | ||
| memoro | ||
| moodlit | ||
| mukke | ||
| news | ||
| photos | ||
| picture | ||
| plants | ||
| presi | ||
| questions | ||
| quotes/packages/content | ||
| skilltree | ||
| storage | ||
| times | ||
| todo | ||
| traces | ||
| uload | ||