Skip to content

Commit d5cfb43

Browse files
Constrain connector card logo width (#1484)
1 parent 748effc commit d5cfb43

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

src/components/connectors/card/Logo.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ function ConnectorLogo({
2323
loading="lazy"
2424
alt=""
2525
style={{
26-
width: 'auto',
2726
maxHeight: maxHeight ?? 75,
27+
maxWidth: '100%',
2828
padding: padding ?? '0 1rem',
2929
}}
3030
/>

src/components/connectors/card/index.tsx

+12-15
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ function ConnectorCard({
4747
marginBottom: recommended ? 1 : 2,
4848
}}
4949
>
50-
<Box
50+
<Stack
51+
style={{
52+
justifyContent: 'center',
53+
alignItems: 'center',
54+
}}
5155
sx={
5256
recommended
5357
? {
@@ -59,21 +63,14 @@ function ConnectorCard({
5963
: connectorImageBackgroundSx
6064
}
6165
>
62-
<Stack
63-
sx={{
64-
justifyContent: 'center',
65-
alignItems: 'center',
66-
}}
67-
>
68-
<Box>{logo}</Box>
66+
{logo}
6967

70-
{docsUrl ? (
71-
<ExternalLink link={docsUrl}>
72-
<FormattedMessage id="terms.documentation" />
73-
</ExternalLink>
74-
) : null}
75-
</Stack>
76-
</Box>
68+
{docsUrl ? (
69+
<ExternalLink link={docsUrl}>
70+
<FormattedMessage id="terms.documentation" />
71+
</ExternalLink>
72+
) : null}
73+
</Stack>
7774

7875
{recommended ? (
7976
<Box

0 commit comments

Comments
 (0)