added utility designs

This commit is contained in:
2026-06-16 15:00:20 +02:00
parent d5efbc02d2
commit 59147deec6

View File

@@ -668,11 +668,11 @@ function editContribution(contributionId) {
html:
'<div style="text-align:left;">' +
'<div style="margin-bottom:12px;">' +
'<label style="display:block;font-weight:600;font-size:1.15rem;margin-bottom:4px;">Titel</label>' +
'<label class="swal-label">Titel</label>' +
'<input id="swal-title" class="swal2-input" style="margin:0;width:100%;" value="' + escapeHtml(props.title) + '">' +
'</div>' +
'<div>' +
'<label style="display:block;font-weight:600;font-size:1.15rem;margin-bottom:4px;">Beschreibung</label>' +
'<label class="swal-label">Beschreibung</label>' +
'<textarea id="swal-description" class="swal2-textarea" style="margin:0;width:100%;">' + escapeHtml(props.description || '') + '</textarea>' +
'</div>' +
'</div>',
@@ -921,14 +921,14 @@ function buildCategoryFilter() {
const checked = activeFilters.indexOf(key) !== -1 ? 'checked' : '';
const count = counts[key] || 0;
html += '<label style="display:flex;align-items:center;gap:8px;margin-bottom:6px;cursor:pointer;font-size:0.85rem;color:var(--color-text-secondary)">' +
html += '<label class="category-filter-label">' +
'<input type="checkbox" value="' + key + '" ' + checked + ' onchange="toggleCategoryFilter(this)">' +
categoryIcon(cat) +
'<span>' + cat.label + ' (' + count + ')</span>' +
'</label>';
}
html += '<p style="margin-top:10px;font-size:0.85rem;color:var(--color-text-secondary)"><strong>' + total + '</strong> Beiträge insgesamt</p>';
html += '<p class="category-filter-total"><strong>' + total + '</strong> Beiträge insgesamt</p>';
container.innerHTML = html;
}