Skip to content

Fix Responsive Issue in svelte.dev Homepage #997

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

Merged
merged 2 commits into from
Dec 12, 2024
Merged

Fix Responsive Issue in svelte.dev Homepage #997

merged 2 commits into from
Dec 12, 2024

Conversation

kresnasatya
Copy link
Contributor

@kresnasatya kresnasatya commented Dec 12, 2024

Hi! This PR is a fix of responsive issue in svelte.dev homepage: #982. I see the update version of @sveltejs/enhanced-img in commit d6a64f8 makes the svelte.dev homepage not responsive. If I see more detail, the svelte-pronounciation.svg needs to set width and height expicitly as the quick solution.

I have see the PR of @sveltejs/enhanced-img https://github.com/sveltejs/kit/pull/13126/files#diff-f318d5cf67f7e975aecc26dfb6056ae55058442cf36dd7e6f53c4a292edeb2d9. But, it looks like Ben forgot to test the svelte-pronounciation.svg asset.

Here's the GIF video demonstration (please wait for seconds to make it appears).

Screen Recording 2024-12-12 at 08 41 33

Before submitting the PR, please make sure you do the following

  • It's really useful if your PR references an issue where it is discussed ahead of time.
  • Prefix your PR title with feat:, fix:, chore:, or docs:.
  • This message body should clearly illustrate what problems it solves.

Copy link

vercel bot commented Dec 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
svelte-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 0:54am

Copy link

vercel bot commented Dec 12, 2024

@kresnasatya is attempting to deploy a commit to the Svelte Team on Vercel.

A member of the Team first needs to authorize it.

@Rich-Harris
Copy link
Member

Thank you — I removed the hardcoded dimensions and used a width: auto style instead

@Rich-Harris Rich-Harris merged commit ad86cb3 into sveltejs:main Dec 12, 2024
0 of 3 checks passed
@kresnasatya
Copy link
Contributor Author

Thank you — I removed the hardcoded dimensions and used a width: auto style instead

You're welcome. I just realize that width: auto is possible too.

@kresnasatya kresnasatya deleted the fix-svelte-pronounciation-size branch December 12, 2024 23:06
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.

2 participants