Skip to content

Fix text alignment for wrapped location/country labels#466

Merged
jbampton merged 5 commits intoNextCommunity:mainfrom
2005rishabh:my-feature-branch
May 2, 2026
Merged

Fix text alignment for wrapped location/country labels#466
jbampton merged 5 commits intoNextCommunity:mainfrom
2005rishabh:my-feature-branch

Conversation

@2005rishabh
Copy link
Copy Markdown
Contributor

Fixes #463

  • Added text-right to ensure proper alignment when location/country text wraps
  • Also added my profile to the developer directory

@jbampton jbampton self-assigned this May 2, 2026
@jbampton jbampton added this to Next May 2, 2026
@github-project-automation github-project-automation Bot moved this to In progress in Next May 2, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds a new user profile for Rishabh Singh and updates the layout in src/index.njk to include right-aligned text for location and country labels. A review comment suggests removing the shrink-0 utility class from the location container to prevent layout overflow on smaller screens and ensure text wraps correctly.

Comment thread src/index.njk Outdated
@jbampton jbampton added this to the Turbo milestone May 2, 2026
@jbampton jbampton moved this from In progress to Review in progress in Next May 2, 2026
@jbampton jbampton requested a review from Copilot May 2, 2026 20:08
Comment thread src/users/2005rishabh.yaml Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses a UI issue on the developer directory index page where the location/country badge text alignment looks incorrect when the labels wrap, and it also adds a new developer profile entry.

Changes:

  • Add text-right to the location/country badge container on the index page to keep wrapped lines right-aligned.
  • Add a new developer profile YAML for 2005rishabh.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/index.njk Right-align wrapped lines in the location/country label block via Tailwind text-right.
src/users/2005rishabh.yaml Adds a new developer profile with required fields (name, github, country, location, role, languages, bio).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/users/2005rishabh.yaml Outdated
Comment thread src/users/2005rishabh.yaml Outdated
@jbampton jbampton requested a review from Copilot May 2, 2026 20:31
@jbampton
Copy link
Copy Markdown
Member

jbampton commented May 2, 2026

/gemini review

@jbampton jbampton linked an issue May 2, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/index.njk
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds a new user profile for Rishabh Singh and updates the layout of the location metadata in the index page. Feedback suggests that removing the shrink-0 class from the metadata container could cause layout issues on small screens, potentially squeezing the text into an awkward vertical stack; adding width constraints was recommended to ensure a more balanced display.

Comment thread src/index.njk
{% set location = person.data.location %}
{% if location or country %}
<div class="flex flex-col items-end gap-0.5 shrink-0 text-[10px] bg-[var(--bg-footer)] text-[var(--text-muted)] px-2 py-1 rounded font-bold uppercase border border-[var(--border-color)]">
<div class="flex flex-col items-end text-right gap-0.5 text-[10px] bg-[var(--bg-footer)] text-[var(--text-muted)] px-2 py-1 rounded font-bold uppercase border border-[var(--border-color)]">
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The removal of shrink-0 combined with the flex-1 container on the left (line 27) will cause this metadata block to be squeezed to its minimum width whenever the name or role text is long. While this forces the wrapping you intended, it can lead to an awkward vertical stack of single words if the available space is very tight. Consider adding a min-w-[...] or max-w-[...] to maintain a more balanced layout between the name and the location metadata.

Copy link
Copy Markdown
Member

@jbampton jbampton left a comment

Choose a reason for hiding this comment

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

Thanks 🏂

@github-project-automation github-project-automation Bot moved this from Review in progress to Reviewer approved in Next May 2, 2026
@jbampton jbampton merged commit 14efb2d into NextCommunity:main May 2, 2026
16 of 17 checks passed
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Next May 2, 2026
@2005rishabh 2005rishabh deleted the my-feature-branch branch May 2, 2026 20:39
@SaishWadnere SaishWadnere mentioned this pull request May 3, 2026
jbampton added a commit that referenced this pull request May 3, 2026
* fix(ui): prevent metadata layout from shrinking

Add min-w, max-w, and shrink-0 to the location/country metadata container to avoid it collapsing when name or role text is long.

Addresses review feedback from PR #466.

* Add Saish Wadnere to developer directory

* Use standard Tailwind spacing classes instead of arbitrary values

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: John Bampton <jbampton@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Index page locations CSS improvements

3 participants