Bilder Aspect + name centered + Preview

This commit is contained in:
2026-09-07 18:53:41 +02:00
parent a426d5d779
commit b639c03ef8
7 changed files with 130 additions and 14 deletions

View File

@@ -26,7 +26,7 @@
background: var(--paper-2); border-radius: 10px; box-shadow: var(--shadow);
padding: 1em; width: 220px; position: relative;
}
.block-item img { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; }
.block-item img { display: block; max-width: 100%; max-height: 220px; width: auto; height: auto; margin: 0 auto; border-radius: 6px; }
.block-item audio { width: 100%; margin-top: 0.4em; }
.block-item textarea { min-height: 4em; font-size: 0.9rem; }
.block-item .block-caption { font-size: 0.82rem; margin-top: 0.5em; }
@@ -36,3 +36,23 @@
position: absolute; top: -8px; left: 10px; font-size: 0.7rem; font-weight: 700;
background: var(--mustard); color: #533; padding: 0.1em 0.6em; border-radius: 999px;
}
.preview-modal-backdrop {
position: fixed; inset: 0; background: rgba(75,59,107,0.45);
display: flex; align-items: flex-start; justify-content: center;
z-index: 100; padding: 2em 1em; overflow-y: auto;
}
.preview-modal {
background: var(--paper);
border-radius: 16px;
box-shadow: 0 12px 40px rgba(0,0,0,0.3);
width: 100%; max-width: 780px;
max-height: calc(100vh - 4em);
display: flex; flex-direction: column; overflow: hidden;
}
.preview-modal-head {
display: flex; align-items: center; justify-content: space-between;
gap: 1em; padding: 1em 1.4em; background: var(--paper-2);
border-bottom: 2px solid var(--line); flex-wrap: wrap;
}
.preview-modal-body { overflow-y: auto; padding: 0.5em; }