From 7831654e38b803a0d3abe56dd92245f6bf479256 Mon Sep 17 00:00:00 2001 From: Kerwin Bryant Date: Wed, 20 Nov 2024 06:17:19 +0000 Subject: [PATCH] Add Avatar Border for Visual Consistency --- models/avatars/avatar.go | 2 +- web_src/css/base.css | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/models/avatars/avatar.go b/models/avatars/avatar.go index 9c56e0f9a0..04e12f3e90 100644 --- a/models/avatars/avatar.go +++ b/models/avatars/avatar.go @@ -24,7 +24,7 @@ import ( const ( // DefaultAvatarClass is the default class of a rendered avatar - DefaultAvatarClass = "ui avatar tw-align-middle" + DefaultAvatarClass = "ui avatar border tw-align-middle" // DefaultAvatarPixelSize is the default size in pixels of a rendered avatar DefaultAvatarPixelSize = 28 ) diff --git a/web_src/css/base.css b/web_src/css/base.css index b5a39c7af6..a25f985807 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -462,6 +462,7 @@ img.ui.avatar, .ui.avatar img, .ui.avatar svg { border-radius: var(--border-radius); + border-color: var(--color-secondary); object-fit: contain; aspect-ratio: 1; }