nodejs / nodejs.org

The Node.js® Website
https://nodejs.org
MIT License
6k stars 6.16k forks source link

fix: make the `searchButton` width dynamic to fit the content #6904

Open nazarepiedady opened 3 days ago

nazarepiedady commented 3 days ago

closes #6903 closes #6841

Description

In this pull request, I am solving the problem I figured out and reported on #6903 (now closed) and #6841 issue. It's a simple solution with a great visual impact on the issue, and finally, the solution works correctly on all idioms of the website.

Validation

Before Now
Screenshot 2024-07-05 at 05-58-14 Screenshot 2024-07-05 at 05-58-37

Related Issues

Check List

vercel[bot] commented 3 days ago

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

Name Status Preview Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview Jul 5, 2024 5:26am
nazarepiedady commented 3 days ago

@mikeal, @AugustinMauroy, could you do the honour of reviewing and merging this pull request, please?

nilkhankari commented 3 days ago

With these changes, the issue still occurs for viewport 1030.

image
ovflowd commented 3 days ago

With these changes, the issue still occurs for viewport 1030.

image

This is something else, not related to this issue. There's just literally no enough space to render things here.

github-actions[bot] commented 3 days ago
Lighthouse Results URL Performance Accessibility Best Practices SEO Report
/en 🟢 98 🟢 100 🟢 100 🟢 91 🔗
/en/about 🟢 100 🟢 100 🟢 100 🟢 91 🔗
/en/about/previous-releases 🟢 100 🟢 100 🟢 100 🟢 92 🔗
/en/download 🟢 99 🟢 100 🟢 100 🟢 91 🔗
/en/blog 🟢 99 🟢 100 🟢 100 🟢 92 🔗
github-actions[bot] commented 3 days ago

Unit Test Coverage Report

Unit Test Report

Tests Skipped Failures Errors Time
131 0 :zzz: 0 :x: 0 :fire: 5.194s :stopwatch: