Skip to content

Commit

Permalink
fix: main page mobile display error
Browse files Browse the repository at this point in the history
  • Loading branch information
SnowballXueQiu committed Aug 19, 2024
1 parent 921ce64 commit 0a678dc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/(index)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default function HomePage() {
</Group>
</Stack>
</Center>
<Container>
<Container className={classes.imageContainer}>
<Image
src={mainPageImage.src}
alt="Main Page Image"
Expand Down
12 changes: 11 additions & 1 deletion styles/common.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,14 @@
var(--mantine-font-family), serif;
line-height: 1;
margin-bottom: var(--mantine-spacing-md);
}
}

.imageContainer {
display: block;
}

@media (max-width: 770px) {
.imageContainer {
display: none;
}
}

0 comments on commit 0a678dc

Please sign in to comment.