Skip to content

Commit 9530910

Browse files
authored
Merge pull request #11958 from ethereum/calloutbanner-style
Fix CalloutBanner imge sizing/layout bugs
2 parents 512b1a9 + 790c4dd commit 9530910

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/components/CalloutBanner.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export type CalloutBannerProps = FlexProps & {
1111
children?: React.ReactNode
1212
image: ImageProps["src"]
1313
imageWidth?: number
14-
maxImageWidth?: ImageProps["width"]
1514
titleKey: TranslationKey
1615
descriptionKey: TranslationKey
1716
alt: string
@@ -20,7 +19,6 @@ export type CalloutBannerProps = FlexProps & {
2019
const CalloutBanner = ({
2120
image,
2221
imageWidth,
23-
maxImageWidth,
2422
titleKey,
2523
descriptionKey,
2624
alt,
@@ -44,11 +42,10 @@ const CalloutBanner = ({
4442
src={image}
4543
alt={alt}
4644
width={imageWidth}
47-
maxW={{ base: "auto", md: maxImageWidth }}
4845
style={{
4946
objectFit: "contain",
5047
}}
51-
alignSelf="center"
48+
mx="auto"
5249
mt={-24}
5350
mb={{ base: 0, lg: -24 }}
5451
/>

src/pages/get-eth.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ const GetEthPage = ({
478478
descriptionKey="page-get-eth:page-get-eth-use-your-eth-dapps"
479479
image={dapps}
480480
alt={t("page-index:page-index-sections-individuals-image-alt")}
481-
maxImageWidth={600}
481+
imageWidth={600}
482482
>
483483
<Box>
484484
<ButtonLink href="/dapps/">

src/pages/stablecoins.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ const StablecoinsPage = ({ markets, marketsHasError }) => {
633633
"page-stablecoins-stablecoins-dapp-callout-description"
634634
)}
635635
image={dogeComputerImg}
636-
maxImageWidth={600}
636+
imageWidth={600}
637637
alt={t("page-stablecoins-stablecoins-dapp-callout-image-alt")}
638638
>
639639
<Flex flexFlow="wrap" gap="1em">

0 commit comments

Comments
 (0)