Add profile-pic class to profile avatar div

This commit is contained in:
jelveh
2025-12-09 23:48:02 -08:00
parent 9806a8bc81
commit f18e349c21
+1 -4
View File
@@ -42,10 +42,7 @@ const TabAccount = {
// Profile picture card
h += '<div class="dashboard-card dashboard-profile-card">';
h += '<div class="dashboard-profile-picture-section">';
h += `<div class="profile-picture change-profile-picture dashboard-profile-avatar" style="background-image: url('${html_encode(window.user?.profile?.picture ?? window.icons['profile.svg'])}');">`;
h += '<div class="dashboard-profile-avatar-overlay">';
h += '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"/><circle cx="12" cy="13" r="4"/></svg>';
h += '</div>';
h += `<div class="profile-picture change-profile-picture dashboard-profile-avatar profile-pic" style="background-image: url('${html_encode(window.user?.profile?.picture ?? window.icons['profile.svg'])}');">`;
h += '</div>';
h += '<div class="dashboard-profile-info">';
h += `<h3>${html_encode(window.user?.username || 'User')}</h3>`;