diff --git a/inventory/templates/inventory_note.html b/inventory/templates/inventory_note.html index abff378..89f1df6 100644 --- a/inventory/templates/inventory_note.html +++ b/inventory/templates/inventory_note.html @@ -56,6 +56,9 @@ for (const t of container.querySelectorAll('table')) { t.classList.add('table', 'table-sm', 'table-striped', 'table-bordered'); } + for (const t of container.querySelectorAll('blockquote')) { + t.classList.add('blockquote', 'border-start', 'border-5', 'border-success', 'mt-3', 'ps-3'); + } } function changeMode() { diff --git a/inventory/templates/update_list.html b/inventory/templates/update_list.html index 1579261..3fb0973 100644 --- a/inventory/templates/update_list.html +++ b/inventory/templates/update_list.html @@ -91,11 +91,19 @@ } } + function enhanceBlockquotes(root) { + if (!root) return; + for (const t of root.querySelectorAll('blockquote')) { + t.classList.add('blockquote', 'border-start', 'border-5', 'border-success', 'mt-3', 'ps-3'); + } + } + function renderHTML(el, md) { if (!el) return; el.innerHTML = renderMarkdown(md); enhanceLinks(el); enhanceTables(el); + enhanceBlockquotes(el); } function getMarkdown(id) {