-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Home page exceeds page's dimensions on Chromium-based browsers #470
Conversation
apps/website/src/app/page.tsx
Outdated
@@ -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%" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could not need this. I've tried it with overflowX: "hidden"
only and it works. Could you double-check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean, the w="full"
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, * we could not need this.
overflowX: "hidden"
could be enough for making it work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Umh I'm trying it with w="full"
and it works
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, maintaining w="full"
works since is equivalent to min & max at 100%. Lmk which ones do you prefer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mmh I'd reduce the number of changes in this PR to the bare minimum.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better for consistency across images, see last commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's still another image to update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apps/website/src/app/page.tsx
Outdated
@@ -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%" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mmh I'd reduce the number of changes in this PR to the bare minimum.
apps/website/src/app/page.tsx
Outdated
@@ -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%" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's still another image to update
apps/website/src/app/page.tsx
Outdated
@@ -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%" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
To solve this, I set the
overflowX
property in the body tohidden
(to prevent the content from overflowing horizontally into the parent element's box) and addedminWidth
andmaxWidth
instead ofwidth
, stretching the image to the maximum for the page layout size.Related Issue
#462
Does this introduce a breaking change?