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

fix: login button overlap issue #987

Merged
merged 3 commits into from
Oct 6, 2023

Conversation

irfanfaraaz
Copy link
Contributor

@irfanfaraaz irfanfaraaz commented Oct 4, 2023


name: Pull request
about: Create a pull request
title: fix: Login Button Overlaps on Search Bar''
labels: bugs, help wanted ''
assignees: @irfanfaraaz''


What type of PR is this?(check all applicable)

  • refactor
  • feature
  • bug fix
  • documentation
  • optimization
  • other

Description

Initially, there was an issue where the login button and the search bar were overlapping. I have resolved this, and there is no longer any overlap between the login button and the search bar. The user interface is now improved, ensuring a seamless and visually appealing experience.

Related Issues

Issue #985

What this PR achieves

fixes: login button overlap issue

Screenshots, recordings

Before:


image

After:


image

Notes

@vercel
Copy link

vercel bot commented Oct 4, 2023

@irfanfaraaz is attempting to deploy a commit to the openbeta-dev Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Oct 4, 2023

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

Name Status Preview Updated (UTC)
open-tacos ✅ Ready (Inspect) Visit Preview Oct 6, 2023 8:27pm

@irfanfaraaz irfanfaraaz temporarily deployed to Preview October 4, 2023 19:01 — with GitHub Actions Inactive
@vnugent
Copy link
Contributor

vnugent commented Oct 6, 2023

@irfanfaraaz thanks for the PR. While negative margin works I think it's a bit of a hack. I'd change the behavior of the parent container.

  • Currently, the parent div has 3 equal width columns using css grid
  • Since the right most cell can't accommodate all the menu items, let's get rid of grid and use flex box instead. Remove all classes with the md prefix, eg: 'md:grid md:grid md:grid-cols-3 md:auto-cols-max'
  • Add justify-between https://tailwindcss.com/docs/justify-content#space-between

Can you try that way to see if it works?

Parent container: https://github.com/OpenBeta/open-tacos/blob/develop/src/components/ui/Bar.tsx#L53

@vnugent vnugent self-requested a review October 6, 2023 18:10
src/components/ui/DesktopNavBar.tsx Outdated Show resolved Hide resolved
@irfanfaraaz
Copy link
Contributor Author

Thanks for the feedback! I've made the requested changes, let me know if it aligns with what you had in mind.

@irfanfaraaz irfanfaraaz temporarily deployed to Preview October 6, 2023 19:03 — with GitHub Actions Inactive
src/components/ui/DesktopNavBar.tsx Outdated Show resolved Hide resolved
@irfanfaraaz
Copy link
Contributor Author

Done

@vnugent
Copy link
Contributor

vnugent commented Oct 6, 2023

@all-contributors add @irfanfaraaz for code

@allcontributors
Copy link
Contributor

@vnugent

I've put up a pull request to add @irfanfaraaz! 🎉

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