From 227e938db6173dd7fce1f56a6b5affa3965d45a1 Mon Sep 17 00:00:00 2001 From: DacongDA Date: Fri, 26 Apr 2024 23:33:41 +0800 Subject: [PATCH] feat: fix error behavior of custom oauth/saml provider in login page in big icon mode (#2900) --- web/src/auth/ProviderButton.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/src/auth/ProviderButton.js b/web/src/auth/ProviderButton.js index c7562c54..4d4ee86c 100644 --- a/web/src/auth/ProviderButton.js +++ b/web/src/auth/ProviderButton.js @@ -172,23 +172,23 @@ export function renderProviderLogo(provider, application, width, margin, size, l const customAStyle = {display: "block", height: "55px", color: "#000"}; const customButtonStyle = {display: "flex", alignItems: "center", width: "calc(100% - 10px)", height: "50px", margin: "5px", padding: "0 10px", backgroundColor: "transparent", boxShadow: "0px 1px 3px rgba(0,0,0,0.5)", border: "0px", borderRadius: "3px", cursor: "pointer"}; const customImgStyle = {justfyContent: "space-between"}; - const customSpanStyle = {textAlign: "center", lineHeight: "50px", width: "100%", fontSize: "19px"}; + const customSpanStyle = {textAlign: "center", width: "100%", fontSize: "19px"}; if (provider.category === "OAuth") { return ( - + ); } else if (provider.category === "SAML") { return ( goToSamlUrl(provider, location)} style={customAStyle}> - + ); }