diff --git a/frontend/dashboard.html b/frontend/dashboard.html
index 46d0bf2..9ac66d2 100644
--- a/frontend/dashboard.html
+++ b/frontend/dashboard.html
@@ -417,6 +417,11 @@
.fcw-btn svg { width: 13px; height: 13px; stroke: currentColor; }
.fcw-empty { text-align: center; padding: 16px 12px; color: var(--text-3); }
.fcw-empty p { font-size: 0.82rem; margin-bottom: 10px; }
+ /* картинка на карточке виджета */
+ .fcw-inner.has-img { min-height: 172px; }
+ .fcw-img { align-self: center; max-width: 100%; max-height: 96px; object-fit: contain;
+ border-radius: 8px; box-shadow: 0 1px 5px rgba(15,23,42,0.12); }
+ .has-img .fcw-text { -webkit-line-clamp: 2; }
/* ── subjects progress bars ── */
.subj-prog-row {
@@ -4320,18 +4325,24 @@
}
_fcwTotal = r.total || 0;
const c = r.card;
- const back = (c.back || '').trim() || '(ответ не заполнен)';
+ const frontTxt = (c.front || '').trim() || (c.front_image ? '' : '(пусто)');
+ const back = (c.back || '').trim() || (c.back_image ? '' : '(ответ не заполнен)');
const col = c.deck_color || '#9B5DE5';
+ const hasImg = !!(c.front_image || c.back_image);
+ const fImg = c.front_image ? `` : '';
+ const bImg = c.back_image ? `
` : '';
body.innerHTML = `