mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-06 01:20:41 +00:00
Add profile-pic class to profile avatar div
This commit is contained in:
@@ -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>`;
|
||||
|
||||
Reference in New Issue
Block a user