mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 07:42:47 +01:00
Show Home Section Description in User>Home and the admin config
This commit is contained in:
@@ -894,6 +894,10 @@
|
||||
const captionHtml = captionText
|
||||
? `<div class="listItemBodyText secondary section-row-caption" style="font-size: 0.85em; margin-top: 0.2em; opacity: 0.85;">${escapeHtml(captionText)}</div>`
|
||||
: '';
|
||||
const descriptionText = String(section.description || '').trim();
|
||||
const descriptionHtml = descriptionText
|
||||
? `<div class="listItemBodyText secondary section-row-description" style="font-size: 0.85em; margin-top: 0.2em; opacity: 0.85;">${escapeHtml(descriptionText)}</div>`
|
||||
: '';
|
||||
|
||||
return `
|
||||
<div class="listItem viewItem section-row" data-section-id="${sectionId}" data-section-type="${sectionType}" ${draggableAttr} ${dataAttrsStr}>
|
||||
@@ -910,6 +914,7 @@
|
||||
${discoveryBadge}
|
||||
</div>
|
||||
${captionHtml}
|
||||
${descriptionHtml}
|
||||
</div>
|
||||
<div class="section-row-actions">
|
||||
${isPinnedSection ? `
|
||||
|
||||
Reference in New Issue
Block a user