Skip to content

Commit 14c0830

Browse files
committed
reverse some CLS image styles
Signed-off-by: Lee Calcote <lee.calcote@layer5.io>
1 parent bacf399 commit 14c0830

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/components/Card/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ const Card = ({ frontmatter, fields }) => {
1313
return (
1414
<CardWrapper fixed={!!frontmatter.abstract}>
1515
<div className="post-block">
16-
<div className="post-thumb-block" style={{ aspectRatio: "16/9", minHeight: "200px" }}>
16+
<div className="post-thumb-block">
1717
<Image
1818
{...((isDark && frontmatter.darkthumbnail && frontmatter.darkthumbnail.publicURL !== frontmatter.thumbnail.publicURL)
1919
? frontmatter.darkthumbnail : frontmatter.thumbnail)}
20-
imgStyle={{ objectFit: "cover" }}
20+
imgStyle={{ objectFit: "contain" }}
2121
alt={frontmatter.title}
2222
/>
2323
</div>

src/components/Related-Posts/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ const RelatedPosts = props => {
3131
{
3232
postType === "blogs" ? relatedPosts.map(({ post }) => {
3333
return (
34-
<Col className="cardCol" $xs={12} key={post.fields.slug} style={{ minHeight: "320px" }}>
34+
<Col className="cardCol" $xs={12} key={post.fields.slug}>
3535
<Card frontmatter={post.frontmatter} fields={post.fields}/>
3636
</Col>
3737
);
3838
}) : relatedPosts.map((post) => {
3939
return (
40-
<Col className="cardCol" $xs={12} key={post.fields.slug} style={{ minHeight: "320px" }}>
40+
<Col className="cardCol" $xs={12} key={post.fields.slug}>
4141
<Card frontmatter={post.frontmatter} fields={post.fields}/>
4242
</Col>
4343
);

src/sections/Home/Banner-4/banner4.style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const Banner1SectionWrapper = styled.section`
5151
5252
/* Loading placeholder */
5353
&::before {
54-
content: "Loading video...";
54+
content: "";
5555
position: absolute;
5656
top: 50%;
5757
left: 50%;

0 commit comments

Comments
 (0)