From 45ec4b80a8b67eba465f0253a1317489749b4b52 Mon Sep 17 00:00:00 2001 From: dev Date: Thu, 5 Nov 2026 17:03:54 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86?= =?UTF-8?q?=D1=8B=20=D0=B8=20=D0=BB=D0=BE=D0=B3=D0=B8=D0=BA=D0=B8=20=D0=B4?= =?UTF-8?q?=D0=B0=D1=88=D0=B1=D0=BE=D1=80=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/dashboard.html | 2 ++ public/js/dashboard.js | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/public/dashboard.html b/public/dashboard.html index e97b05f..9f16810 100644 --- a/public/dashboard.html +++ b/public/dashboard.html @@ -30,7 +30,9 @@ .digest-dash-actions { display:flex; gap:8px; margin-top:6px; flex-shrink:0; } .digest-view { display:flex; flex-direction:column; gap:12px; } .digest-view-preview { width:100%; max-height:320px; object-fit:cover; border:1px solid var(--border); border-radius:10px; } + .bookmark-modal-head { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:0 0 12px 0; border-bottom:1px solid var(--border); } .digest-view-head { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; } + #digestViewGo { text-decoration:none; } .digest-view-title { margin:0; font-size:1.25rem; word-break:break-word; } .digest-view-meta { font-size:.82rem; color:var(--muted); } .digest-view-body { font-size:1rem; line-height:1.7; color:var(--text); } diff --git a/public/js/dashboard.js b/public/js/dashboard.js index e5e4aca..51e425c 100644 --- a/public/js/dashboard.js +++ b/public/js/dashboard.js @@ -272,9 +272,15 @@ function digestViewImagesHtml(d) { }).join('') + ''; } +function previewSrc(p) { + if (!p) return p; + if (p.startsWith('/uploads/')) return `${API}${p}`; + return thumbSrc(p); +} + function renderDigestView(d) { const pinned = !!d.is_pinned; - const preview = d.preview_path ? 'превью' : ''; + const preview = d.preview_path ? 'превью' : ''; const images = digestViewImagesHtml(d); const body = linkifyTextHtml(d.body || ''); return '
' +