Add server icon customization modal and enhance edit indicator styling

This commit is contained in:
2025-12-06 16:27:29 -05:00
parent a8615fb159
commit b5a22f2c2f
2 changed files with 9 additions and 3 deletions

View File

@@ -43,6 +43,11 @@
initialIcon: {{ $server->user_set_icon ? "'" . $server->user_set_icon . "'" : 'null' }},
initialColor: {{ $server->user_set_icon_color ? "'" . $server->user_set_icon_color . "'" : 'null' }},
initialPrefix: {{ $server->user_set_icon_prefix ? "'" . $server->user_set_icon_prefix . "'" : "'ri'" }}
})"
x-init="window.addEventListener('open-server-icon-modal', (event) => {
if (event.detail && String(event.detail.serverId) === String(serverId)) {
openModal();
}
})">
<button @click="openModal()" :title="icon ? 'Customize server icon' : 'Set server icon'" class="flex items-center gap-3 hover:opacity-80 transition-opacity">
<div x-show="icon" :style="color ? 'color: ' + color : ''" x-html="getIconSvg(icon, iconPrefix)" class="size-6"></div>