Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/lib/common/files/FileGallery.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,6 @@
{:else}
<img src={file.file_data} alt={''} />
{/if}
{#if !!file.file_name}
<div class="item-text">{file.file_name}</div>
{/if}
</GalleryImage>
{/each}
</LightboxGallery>
Comment on lines -165 to 167

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Informational

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

Expand Down Expand Up @@ -260,6 +257,11 @@
font-size: 0.7rem;
line-height: 1.2;
}
:global(.svelte-lightbox-footer h2),
:global(.svelte-lightbox-footer h5),
:global(.svelte-lightbox-footer p) {
text-align: center;
}
/* Narrow viewports: shrink the thumbnail box (mirrors the
legacy 500px media query). */
@media (max-width: 500px) {
Expand Down
Loading