diff --git a/Web/templates/library_table.html b/Web/templates/library_table.html
index 5f23b05..584354f 100644
--- a/Web/templates/library_table.html
+++ b/Web/templates/library_table.html
@@ -453,54 +453,28 @@
.detail-gallery-container {
display: grid;
- grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
- gap: 16px;
- margin-bottom: 24px;
- padding-bottom: 20px;
- border-bottom: 1px solid var(--ui-surface-soft, #e5e7eb);
+ grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
+ gap: 12px;
+ margin: 15px 0 20px 0; /* Abstand oben und unten unter dem Titel */
+ width: 100%;
}
.item-image-wrapper {
position: relative;
- aspect-ratio: 1 / 1;
- border-radius: 10px;
+ width: 100%;
+ height: 130px; /* Feste Höhe verhindert das Kollabieren im Modal! */
+ border-radius: 8px;
overflow: hidden;
background-color: #f3f4f6;
border: 1px solid #e5e7eb;
- box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
- transition: transform 0.2s ease, box-shadow 0.2s ease;
- }
-
- .item-image-wrapper:hover {
- transform: translateY(-2px);
- box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.item-image {
width: 100%;
height: 100%;
- object-fit: cover;
+ object-fit: cover; /* Passt das Bild perfekt ein, ohne es zu verzerren */
display: block;
- transition: transform 0.3s ease;
- }
-
- .item-image-wrapper:hover .item-image {
- transform: scale(1.03);
- }
-
- /* Fallback / No-Image Styling im Detail-Modal */
- .detail-no-image {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding: 20px;
- background: #f9fafb;
- border-radius: 8px;
- border: 1px dashed #d1d5db;
- color: #6b7280;
- font-size: 0.9em;
- margin-bottom: 20px;
}
@@ -1391,7 +1365,8 @@
return response.json();
})
.then(data => {
- let mediaHtml = '';
+ detailContent.innerHTML = data.html;
+
const imageArray = data.images || [];
if (Array.isArray(imageArray) && imageArray.length > 0) {
@@ -1400,13 +1375,22 @@
? image
: `/uploads/${image}`;
- return ``;
+ return `
+