Skip to content

Commit f18e349

Browse files
committed
Add profile-pic class to profile avatar div
1 parent 9806a8b commit f18e349

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/gui/src/UI/Dashboard/TabAccount.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ const TabAccount = {
4242
// Profile picture card
4343
h += '<div class="dashboard-card dashboard-profile-card">';
4444
h += '<div class="dashboard-profile-picture-section">';
45-
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'])}');">`;
46-
h += '<div class="dashboard-profile-avatar-overlay">';
47-
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>';
48-
h += '</div>';
45+
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'])}');">`;
4946
h += '</div>';
5047
h += '<div class="dashboard-profile-info">';
5148
h += `<h3>${html_encode(window.user?.username || 'User')}</h3>`;

0 commit comments

Comments
 (0)