diff --git a/public/digest.html b/public/digest.html index a0fb248..12a63d6 100644 --- a/public/digest.html +++ b/public/digest.html @@ -30,7 +30,10 @@ .digest-none { color: var(--muted); font-size: .85rem; font-style: italic; } .digest-head-img { margin: 8px 0 10px 0; } .digest-images-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; } - .digest-card-thumb { width: 70px; height: 55px; object-fit: cover; border: 1px solid var(--border); border-radius: 6px; flex-shrink: 0; } + .digest-card-thumb { width: 70px; height: 55px; object-fit: cover; border: 1px solid var(--border); border-radius: 6px; flex-shrink: 0; display: block; } + .digest-shot { position: relative; display: inline-flex; align-items: center; justify-content: center; border: none; background: transparent; padding: 0; cursor: pointer; border-radius: 6px; overflow: hidden; } + .digest-shot-zoom { position: absolute; bottom: 4px; right: 4px; background: rgba(0,0,0,.55); color: #fff; border-radius: 4px; padding: 2px 5px; font-size: .65rem; opacity: 0; transition: opacity .15s; } + .digest-shot:hover .digest-shot-zoom { opacity: 1; } .digest-hidden { opacity: 0.72; } @@ -105,6 +108,8 @@ +
+ diff --git a/public/js/digest.js b/public/js/digest.js index 9e73d8c..0f7cafc 100644 --- a/public/js/digest.js +++ b/public/js/digest.js @@ -139,14 +139,17 @@ if (d.hide_at) badge.push('Скрыть ' + fmtDigestDate(d.hide_at) + ''); const preview = d.preview_path - ? '