Skip to content
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

Merged
merged 4 commits into from
Dec 19, 2023

Conversation

0xjei
Copy link
Contributor

@0xjei 0xjei commented Dec 11, 2023

Description

To solve this, I set the overflowX property in the body to hidden (to prevent the content from overflowing horizontally into the parent element's box) and added minWidth and maxWidth instead of width, stretching the image to the maximum for the page layout size.

Related Issue

#462

Does this introduce a breaking change?

  • Yes
  • No

@0xjei 0xjei requested review from cedoor and vplasencia December 11, 2023 22:58
@@ -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%"
Copy link
Member

@cedoor cedoor Dec 12, 2023

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?

Copy link
Contributor Author

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"?

Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, if you remove the parameter minWidth="100%" the images do not extend horizontally and you get something like this

image

Copy link
Member

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

Copy link
Contributor Author

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

Copy link
Member

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.

Copy link
Contributor Author

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

Copy link
Member

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@0xjei 0xjei requested a review from cedoor December 12, 2023 13:51
@cedoor cedoor linked an issue Dec 19, 2023 that may be closed by this pull request
@@ -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%"
Copy link
Member

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.

@@ -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%"
Copy link
Member

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

@@ -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%"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cedoor cedoor merged commit fc6f782 into chore/website Dec 19, 2023
2 checks passed
@cedoor cedoor deleted the website/462 branch December 19, 2023 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Home page exceeds page's dimensions on Chromium-based browsers
3 participants