Skip to content

Commit 9a406e2

Browse files
authored
fix the SSO logo image size (#4821)
1 parent e18b5bd commit 9a406e2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

redisinsight/ui/src/components/oauth/oauth-sign-in-button/OAuthSignInButton.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react'
2+
import styled from 'styled-components'
23
import { OAuthSsoHandlerDialog } from 'uiSrc/components'
34

45
import RedisLogo from 'uiSrc/assets/img/logo_small.svg'
@@ -8,6 +9,11 @@ import { SecondaryButton } from 'uiSrc/components/base/forms/buttons'
89
import { RiImage } from 'uiSrc/components/base/display'
910
import styles from './styles.module.scss'
1011

12+
const LogoWrapper = styled.div`
13+
width: 15px;
14+
height: 15px;
15+
`
16+
1117
export interface Props {
1218
source: OAuthSocialSource
1319
}
@@ -29,7 +35,9 @@ const OAuthSignInButton = (props: Props) => {
2935
}
3036
data-testid="cloud-sign-in-btn"
3137
>
32-
<RiImage className={styles.logo} src={RedisLogo} alt="Redis logo" />
38+
<LogoWrapper>
39+
<RiImage $size={"fullWidth"} className={styles.logo} src={RedisLogo} alt="Redis logo" />
40+
</LogoWrapper>
3341
<span>Cloud sign in</span>
3442
</SecondaryButton>
3543
)}

0 commit comments

Comments
 (0)