Polish search labels CSS and drop non-HTML generate paths.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-26 12:57:36 +03:00
parent 4d66e44fd3
commit 877a3f55db

View File

@@ -142,6 +142,10 @@
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; } .card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.card-text { font-size: 12px; color: var(--muted); line-height: 1.6; max-height: 280px; overflow: hidden; } .card-text { font-size: 12px; color: var(--muted); line-height: 1.6; max-height: 280px; overflow: hidden; }
.card-text img { max-width: 100%; max-height: 200px; display: block; margin: 6px 0; border-radius: 4px; border: 1px solid var(--border); } .card-text img { max-width: 100%; max-height: 200px; display: block; margin: 6px 0; border-radius: 4px; border: 1px solid var(--border); }
.card-section-label {
font-family: var(--mono); font-size: 10px; color: var(--muted);
letter-spacing: .06em; text-transform: uppercase; margin: 10px 0 6px;
}
.card-actions { display: flex; gap: 8px; margin-top: 10px; } .card-actions { display: flex; gap: 8px; margin-top: 10px; }
.card-actions button { font-size: 11px; padding: 5px 10px; } .card-actions button { font-size: 11px; padding: 5px 10px; }
.modal-backdrop { .modal-backdrop {
@@ -755,21 +759,16 @@ function dragDrop(e, idx) {
function generateDoc(fmt) { function generateDoc(fmt) {
if (genOrder.length === 0) { toast('Избери секции първо'); return; } if (genOrder.length === 0) { toast('Избери секции първо'); return; }
const sections = genOrder.map(code => ALL.find(r => r.code === code)).filter(Boolean); const sections = genOrder.map(code => ALL.find(r => r.code === code)).filter(Boolean);
const html = buildHtmlDoc(sections);
if (fmt === 'html') { const blob = new Blob([html], {type: 'text/html;charset=utf-8'});
const html = buildHtmlDoc(sections); const url = URL.createObjectURL(blob);
const blob = new Blob([html], {type: 'text/html;charset=utf-8'}); const win = window.open(url, '_blank');
const url = URL.createObjectURL(blob); if (!win) {
const win = window.open(url, '_blank'); toast('Браузърът блокира new tab — позволи pop-ups', true);
if (!win) { download('help_document.html', html, 'text/html');
toast('Браузърът блокира new tab — позволи pop-ups', true); } else {
download('help_document.html', html, 'text/html'); toast('HTML документът е отворен в нов tab');
} else {
toast('HTML документът е отворен в нов tab');
}
return;
} }
toast('Word / PDF — TODO', true);
} }
function buildHtmlDoc(sections) { function buildHtmlDoc(sections) {