Skip to content

Commit

Permalink
remove div
Browse files Browse the repository at this point in the history
  • Loading branch information
anemne committed Dec 13, 2024
1 parent be31eb2 commit f68b5a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import styles from "./imageSectionComponent.module.css";

const ImageSectionComponent = ({ section }: { section: ImageSection }) => {
return (
<article className={styles.article}>
<div className={styles.article}>
{section.image && (
<div className={styles.image}>
<SanityImage image={section.image} />
</div>
)}
</article>
</div>
);
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
.article {
width: 100%;
max-width: var(--max-content-width-medium);
display: flex;
flex-direction: column;
justify-self: center;
justify-content: center;
}

.image {
display: flex;
flex-shrink: 1;
max-width: 46rem;
max-width: var(--max-content-width-large);
width: 100%;
padding: var(--padding-l) 0rem;

@media (max-width: 834px) {
Expand All @@ -23,16 +23,16 @@
}

.image img {
max-width: var(--max-content-width-large);
max-width: var(--max-content-width-medium) !important;
width: 100%;
height: 100%;
display: block;

@media (max-width: 834px) {
max-width: var(--max-content-width-medium);
max-width: var(--max-content-width-medium) !important;
}

@media (max-width: 425px) {
max-width: var(--max-content-width-small);
max-width: var(--max-content-width-small) !important;
}
}

0 comments on commit f68b5a1

Please sign in to comment.