From 518f55c191b59ebc436a03a6486b777cb91e0f18 Mon Sep 17 00:00:00 2001 From: Milan Cvetkovic Date: Fri, 15 Mar 2024 11:06:24 +0000 Subject: [PATCH] Use official "Log in to Microsoft" icon Downloaded from https://learn.microsoft.com/en-us/entra/identity-platform/howto-add-branding-in-apps on 2024-03-15. --- app/assets/images/microsoft.svg | 2 +- app/helpers/user_helper.rb | 5 ++++- app/views/sessions/new.html.erb | 10 +++++++++- test/helpers/user_helper_test.rb | 2 +- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/app/assets/images/microsoft.svg b/app/assets/images/microsoft.svg index fdc0cbd76..1f7397648 100644 --- a/app/assets/images/microsoft.svg +++ b/app/assets/images/microsoft.svg @@ -1 +1 @@ - \ No newline at end of file +MS-SymbolLockup \ No newline at end of file diff --git a/app/helpers/user_helper.rb b/app/helpers/user_helper.rb index 3554980b8..e1ab423a1 100644 --- a/app/helpers/user_helper.rb +++ b/app/helpers/user_helper.rb @@ -58,7 +58,10 @@ module UserHelper def auth_button(name, provider, options = {}) link_to( - image_tag("#{name}.svg", :alt => t("sessions.new.auth_providers.#{name}.alt"), :class => "rounded-3"), + image_tag("#{name}.svg", + :alt => t("sessions.new.auth_providers.#{name}.alt"), + :class => "rounded-3", + :size => "36"), auth_path(options.merge(:provider => provider)), :method => :post, :class => "auth_button", diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb index f15430efa..ffaad054a 100644 --- a/app/views/sessions/new.html.erb +++ b/app/views/sessions/new.html.erb @@ -28,7 +28,15 @@