Polish search labels CSS and drop non-HTML generate paths.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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,8 +759,6 @@ 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);
|
||||||
|
|
||||||
if (fmt === 'html') {
|
|
||||||
const html = buildHtmlDoc(sections);
|
const html = buildHtmlDoc(sections);
|
||||||
const blob = new Blob([html], {type: 'text/html;charset=utf-8'});
|
const blob = new Blob([html], {type: 'text/html;charset=utf-8'});
|
||||||
const url = URL.createObjectURL(blob);
|
const url = URL.createObjectURL(blob);
|
||||||
@@ -767,9 +769,6 @@ function generateDoc(fmt) {
|
|||||||
} else {
|
} else {
|
||||||
toast('HTML документът е отворен в нов tab');
|
toast('HTML документът е отворен в нов tab');
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
|
||||||
toast('Word / PDF — TODO', true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildHtmlDoc(sections) {
|
function buildHtmlDoc(sections) {
|
||||||
|
|||||||
Reference in New Issue
Block a user