Skip to content

Commit 725ce9a

Browse files
author
Vivek Vishal
authored
Merge pull request #6579 from ShirshenduR/Fix#6578
[Individual-Integrations] Fix logo scaling and make the integrations page responsive
2 parents 5661973 + 2e52097 commit 725ce9a

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

  • src
    • components
    • sections/Meshery/Meshery-integrations/Individual-Integrations

src/components/image.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ const Image = ({ childImageSharp, extension, publicURL, alt, imgStyle, ...rest }
55

66
if (!childImageSharp && extension === "svg") {
77
return (
8-
<div className="old-gatsby-image-wrapper" style={{ width: "100%", height: "auto", aspectRatio: "16/9" }}>
8+
<div className="old-gatsby-image-wrapper" style={{ width: "100%", height: "auto" }}>
99
<img
1010
src={publicURL}
1111
alt={alt || "Blog image"}
1212
width="100%"
1313
height="auto"
1414
style={{
15-
aspectRatio: "16/9",
1615
objectFit: imgStyle?.objectFit || "cover",
1716
...imgStyle
1817
}}

src/sections/Meshery/Meshery-integrations/Individual-Integrations/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const IndividualIntegrations = ({ data }) => {
6363
return (
6464
<IntegrationPageWrapper>
6565
<section className="herosection">
66-
<Image {...frontmatter.integrationIcon} alt={frontmatter.title} />
66+
<Image {...frontmatter.integrationIcon} alt={frontmatter.title} imgStyle={{ objectFit: "contain" }} />
6767
<h2>
6868
{frontmatter.title} with <span className="hero-header">Meshery</span>
6969
</h2>

0 commit comments

Comments
 (0)