Add icon colection

This commit is contained in:
2026-04-22 19:15:52 +07:00
parent f685ff88ee
commit 7c21bbd1af
4 changed files with 98718 additions and 2 deletions
+9 -2
View File
@@ -351,8 +351,15 @@
<div class="row g-2 align-items-center">
<div class="col-md-4">
<label class="form-label small">Icon (FA class)</label>
<input type="text" class="form-control form-control-sm" data-field="icon"
value="${esc(item.icon)}" placeholder="e.g. fa-twitter">
<div class="input-group">
<span class="input-group-text icon-preview-cell" style="min-width:38px">
${item.icon ? `<i class="${esc(item.icon)}"></i>` : ''}
</span>
<input type="text" class="form-control form-control-sm" data-field="icon"
value="${esc(item.icon)}" placeholder="Click to pick..." readonly
style="cursor:pointer;background:#fff"
onclick="IconPicker.open(this)">
</div>
</div>
<div class="col-md-6">
<label class="form-label small">Href</label>