fix gallery view filename wrapping

This commit is contained in:
Ryan
2025-04-10 03:58:26 -04:00
committed by GitHub
parent 5b592575a4
commit 01801ba950

View File

@@ -348,7 +348,7 @@ export function renderGalleryView(folder, container) {
${thumbnail}
</div>
<div class="gallery-info" style="margin-top: 5px;">
<span class="gallery-file-name" style="display: block;">${escapeHTML(file.name)}</span>
<span class="gallery-file-name" style="display: block; white-space: normal; overflow-wrap: break-word; word-wrap: break-word;">${escapeHTML(file.name)}</span>
${tagBadgesHTML}
<div class="button-wrap" style="display: flex; justify-content: center; gap: 5px;">
<button type="button" class="btn btn-sm btn-success download-btn"