nodejs.org icon indicating copy to clipboard operation
nodejs.org copied to clipboard

fix: Certain languages break the max height of the search bar #6841

Open nilkhankari opened this issue 1 year ago • 7 comments

Description

Increased width of search button from 13rem to 15rem

Validation

image image image

Related Issues

Fixes: https://github.com/nodejs/nodejs.org/issues/6841

Check List

  • [x] I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • [x] I have run npm run format to ensure the code follows the style guide.
  • [x] I have run npm run test to check if all tests are passing.
  • [x] I have run npx turbo build to check if the website builds without errors.
  • [x] I've covered new added functionality with unit tests if necessary.

nilkhankari avatar Jun 18 '24 02:06 nilkhankari

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

Name Status Preview Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview Jul 4, 2024 4:28pm

vercel[bot] avatar Jun 18 '24 02:06 vercel[bot]

Two things

The keyboard shortcut still wraps. This is perhaps a separate issue, but we are in this section of the codebase here and it seems relevant to improve. image

There is a viewport range (for me, on WIndows, Chrome, default zoom, fr locale) between1024px and 1114px where the site has a horizontal scrollbar.

image

I'd imagine we want to avoid that.

bmuenzenmeyer avatar Jun 18 '24 19:06 bmuenzenmeyer

Hi @bmuenzenmeyer , Thanks for the review. I am thinking of setting the width of the search button to 16rem. This will resolve the first issue. Regarding the second issue, I am considering reducing the gap and padding to 1rem. Do you have any suggestions on this proposed solution?

nilkhankari avatar Jun 19 '24 12:06 nilkhankari

Hi @bmuenzenmeyer , Thanks for the review. I am thinking of setting the width of the search button to 16rem. This will resolve the first issue. Regarding the second issue, I am considering reducing the gap and padding to 1rem. Do you have any suggestions on this proposed solution?

I think this is fine. Can you go ahead with it? (Dont forget to test different viewports, including mobile ones)

ovflowd avatar Jun 21 '24 10:06 ovflowd

Validation with new changes

For French language image

image image image

For Portuguese image

image image image

For English image

image image image

nilkhankari avatar Jun 21 '24 15:06 nilkhankari

@bmuenzenmeyer @ovflowd Could you please review this.

nilkhankari avatar Jul 01 '24 07:07 nilkhankari

@ovflowd Could you please suggest what we should do with this PR?

nilkhankari avatar Jul 05 '24 14:07 nilkhankari

@ovflowd Could you please suggest what we should do with this PR?

Sorry for the delay! I did not get pinged here. Let's try @nazarepiedady's approach, as that makes sense. I'm worried with the tablet/small screen breakpoints, but we could add a max-width as a last resort and use padding here instead of setting widths.

Could you try that?

ovflowd avatar Jul 20 '24 15:07 ovflowd

It looks like @nazarepiedady made a PR already https://github.com/nodejs/nodejs.org/pull/6904

ovflowd avatar Jul 20 '24 15:07 ovflowd

Unit Test Coverage Report

Unit Test Report

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

github-actions[bot] avatar Jul 20 '24 15:07 github-actions[bot]

It looks like @nazarepiedady made a PR already #6904

@ovflowd okay. Please suggest now what to do with this PR.

nilkhankari avatar Jul 21 '24 10:07 nilkhankari

It looks like @nazarepiedady made a PR already #6904

@ovflowd okay. Please suggest now what to do with this PR.

I assume we'd proceed with Nazare's PR, but I'd keep this PR open until that gets merged. But feel free to close it, also.

ovflowd avatar Jul 21 '24 13:07 ovflowd

@ovflowd, @bmuenzenmeyer, I believe we can close this pull request since the pull request I did is already merged.

I also would like to thank you, @nilkhankari, for your contribution because some of the updates that I did on my pull request were based on your pull request and ideas.

nazarepiedady avatar Jul 22 '24 05:07 nazarepiedady

Closing as https://github.com/nodejs/nodejs.org/pull/6904 landed. Thanks everyone

mikeesto avatar Jul 22 '24 08:07 mikeesto