Skip to content

Commit

Permalink
fix: hidden overflowX and min/max width for images
Browse files Browse the repository at this point in the history
  • Loading branch information
0xjei committed Dec 11, 2023
1 parent 2b0afdf commit 395f3bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions apps/website/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export default function Home() {
alt="Midnight whispers image"
src="https://semaphore.cedoor.dev/midnight-whispers.jpg"
objectFit="cover"
w="full"
minWidth="100%"
maxWidth="100%"
h="full"
/>
</Box>
Expand Down Expand Up @@ -202,7 +203,8 @@ export default function Home() {
alt="Fluttering shadow image"
src="https://semaphore.cedoor.dev/shadow-flutter.jpg"
objectFit="cover"
w="full"
minWidth="100%"
maxWidth="100%"
h="full"
/>
</Box>
Expand Down
3 changes: 2 additions & 1 deletion apps/website/src/styles/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ const styles: Styles = {
color: "white"
},
"body, #__next": {
minHeight: "100vh"
minHeight: "100vh",
overflowX: "hidden"
},
"#__next": {
display: "flex",
Expand Down

0 comments on commit 395f3bd

Please sign in to comment.