Skip to content

Commit

Permalink
feat(SplitSection): hide empty section on narrow screens
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiazom committed Oct 30, 2024
1 parent d7cc199 commit d63094d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function SplitSectionSection({
}) {
switch (section._type) {
case "emptySection":
return <div></div>;
return <div className={styles.emptySection}></div>;
}
return <CustomerCaseSection section={section} />;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@
flex-basis: 0;
flex-grow: 1;
}

.emptySection {
@media (max-width: 1024px) {
display: none;
}
}

0 comments on commit d63094d

Please sign in to comment.