diff --git a/src/systems/dashboard/widgets/userInfoWidget.js b/src/systems/dashboard/widgets/userInfoWidget.js index 249c023..d93dbf4 100644 --- a/src/systems/dashboard/widgets/userInfoWidget.js +++ b/src/systems/dashboard/widgets/userInfoWidget.js @@ -82,10 +82,13 @@ export function registerUserInfoWidget(registry, dependencies) { ...config }; - // Build HTML with flexible layout structure + // Build HTML with avatar as background and text overlay + const backgroundStyle = finalConfig.showAvatar ? + `background-image: url('${userPortrait}'); background-size: contain; background-position: center; background-repeat: no-repeat;` : + ''; + const html = ` -
- ${finalConfig.showAvatar ? `${userName}` : ''} +