From 98ad72c6eb999d787303ed2f7f335e228abe30b7 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Wed, 10 Apr 2024 04:33:22 +0300 Subject: [PATCH] Force body background on avatars --- app/helpers/user_helper.rb | 6 +++--- app/views/layouts/_header.html.erb | 2 +- test/helpers/user_helper_test.rb | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/helpers/user_helper.rb b/app/helpers/user_helper.rb index 6884fba4d..19bb8e0d6 100644 --- a/app/helpers/user_helper.rb +++ b/app/helpers/user_helper.rb @@ -2,7 +2,7 @@ module UserHelper # User images def user_image(user, options = {}) - options[:class] ||= "user_image border border-secondary-subtle" + options[:class] ||= "user_image border border-secondary-subtle bg-body" options[:alt] ||= "" if user.image_use_gravatar @@ -15,7 +15,7 @@ module UserHelper end def user_thumbnail(user, options = {}) - options[:class] ||= "user_thumbnail border border-secondary-subtle" + options[:class] ||= "user_thumbnail border border-secondary-subtle bg-body" options[:alt] ||= "" if user.image_use_gravatar @@ -28,7 +28,7 @@ module UserHelper end def user_thumbnail_tiny(user, options = {}) - options[:class] ||= "user_thumbnail_tiny border border-secondary-subtle" + options[:class] ||= "user_thumbnail_tiny border border-secondary-subtle bg-body" options[:alt] ||= "" if user.image_use_gravatar diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index 6a926d692..13a4aa65e 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -82,7 +82,7 @@ <% if current_user && current_user.id %>