From c253e655b12e94001c29dc25416b9660c20430fa Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Wed, 1 Apr 2026 14:48:31 +0000 Subject: [PATCH] Add avatar placeholer when avatar is empty --- svg/avatar.svg | 1 + ts/components/UserSelector.vue | 212 ++++++++++++++++++----------- ts/view/configuration/UserEdit.vue | 7 +- 3 files changed, 142 insertions(+), 78 deletions(-) create mode 100644 svg/avatar.svg diff --git a/svg/avatar.svg b/svg/avatar.svg new file mode 100644 index 00000000..2c76ff6c --- /dev/null +++ b/svg/avatar.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ts/components/UserSelector.vue b/ts/components/UserSelector.vue index 99fbf567..18d7dfbe 100644 --- a/ts/components/UserSelector.vue +++ b/ts/components/UserSelector.vue @@ -1,110 +1,168 @@ diff --git a/ts/view/configuration/UserEdit.vue b/ts/view/configuration/UserEdit.vue index 7986fe12..012a8262 100644 --- a/ts/view/configuration/UserEdit.vue +++ b/ts/view/configuration/UserEdit.vue @@ -5,7 +5,10 @@ object-fit: cover; border: 3px solid #dee2e6; } - +.bi-avatar { + height: 128px; + width: 128px; +} .btn-close-white { opacity: 0.8; } @@ -47,7 +50,9 @@ pre {
+