fix file gallery styles#471
Conversation
PR Summary by QodoFix FileGallery thumbnail caption overlay and center lightbox footer text
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1. Lightbox filename text removed
|
| {#if !!file.file_name} | ||
| <div class="item-text">{file.file_name}</div> | ||
| {/if} | ||
| </GalleryImage> | ||
| {/each} | ||
| </LightboxGallery> |
There was a problem hiding this comment.
1. Lightbox filename text removed 🐞 Bug ⚙ Maintainability
FileGallery no longer renders file.file_name as text inside each LightboxGallery slide body (the <div class="item-text">…</div> was removed). This changes the lightbox content from “preview + filename” to “preview only”, which can reduce in-slide context for users when viewing multiple attachments.
Agent Prompt
## Issue description
`FileGallery.svelte` removed the only explicit filename text rendered inside each `GalleryImage` in the lightbox. This is a user-visible behavior change: the lightbox slide body now contains only the preview image/icon.
## Issue Context
- Thumbnails still optionally render filenames via `showFileName`, but the lightbox slide body no longer does.
- If filename context in the lightbox is still desired, it should be rendered explicitly (or be clearly controlled by a prop).
## Fix Focus Areas
- src/lib/common/files/FileGallery.svelte[148-167]
- src/lib/common/files/FileGallery.svelte[162-167]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
No description provided.