Skip to content

fix(ui): adjusted the styling in the language switcher - #5329

Open
olehselin wants to merge 2 commits into
sws2apps:mainfrom
olehselin:main
Open

fix(ui): adjusted the styling in the language switcher#5329
olehselin wants to merge 2 commits into
sws2apps:mainfrom
olehselin:main

Conversation

@olehselin

Copy link
Copy Markdown

Description

Adjusted the styling in the language switcher to ensure symmetrical left and right inner spacing.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

@vercel

vercel Bot commented Aug 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
staging-organized-app Ready Ready Preview Aug 5, 2026 1:41pm
test-organized-app Ready Ready Preview Aug 5, 2026 1:41pm

@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 8c084650-a5bf-49cc-8abf-e11737325fe8

📥 Commits

Reviewing files that changed from the base of the PR and between 0025278 and 04d48ee.

📒 Files selected for processing (2)
  • src/features/language_switcher/index.tsx
  • src/layouts/navbar/index.tsx
🚧 Files skipped from review as they are similar to previous changes (2)
  • src/layouts/navbar/index.tsx
  • src/features/language_switcher/index.tsx

Walkthrough

The language icon container centers its contents. The navbar uses 12px horizontal padding for menu items and the standalone language switcher. The standalone language switcher also has a 4px right margin.

Changes

Language switcher navbar layout

Layer / File(s) Summary
Align language switcher and navbar spacing
src/features/language_switcher/index.tsx, src/layouts/navbar/index.tsx
The language icon container centers its contents. Navbar menu padding uses 12px horizontal spacing. The standalone language switcher uses matching padding and a 4px right margin.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Possibly related PRs

Suggested labels: released

Suggested reviewers: rhahao

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the language switcher styling change.
Description check ✅ Passed The description directly explains the language switcher spacing fix and identifies it as a non-breaking bug fix.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

coderabbitai[bot]
coderabbitai Bot previously approved these changes Aug 5, 2026
@olehselin olehselin changed the title fix: disbalanced left-right paddings language switcher Update left-right paddings language switcher Aug 5, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/layouts/navbar/index.tsx`:
- Around line 194-195: Update the standalone LanguageSwitcher styling in the
navbar layout so the MenuItem uses equal left and right padding instead of the
current asymmetric horizontal padding. Keep the existing marginRight on the same
style object only if the 4px outer gap is still intended; the change should be
made where the padding/margin values are defined in the navbar component, not by
altering unrelated MenuItem behavior.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: fee85827-cdf2-402d-8d5b-f494272a6df7

📥 Commits

Reviewing files that changed from the base of the PR and between e850c5e and 9de4fba.

📒 Files selected for processing (2)
  • src/features/language_switcher/index.tsx
  • src/layouts/navbar/index.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/features/language_switcher/index.tsx

Comment thread src/layouts/navbar/index.tsx Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/features/language_switcher/index.tsx`:
- Around line 38-39: Update the MenuItem styling in the language switcher so the
language icon retains spacing from the visible label while remaining unchanged
in icon-only mode. Remove the unconditional marginRight override or make it
conditional, and use the existing label-visibility state to apply an appropriate
flex gap when the label renders.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 2346fc98-0dcb-4b88-a6ee-03025990bb65

📥 Commits

Reviewing files that changed from the base of the PR and between 9de4fba and 7bfca70.

📒 Files selected for processing (1)
  • src/features/language_switcher/index.tsx

Comment thread src/features/language_switcher/index.tsx Outdated
coderabbitai[bot]
coderabbitai Bot previously approved these changes Aug 5, 2026
@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@sonarqubecloud

sonarqubecloud Bot commented Aug 5, 2026

Copy link
Copy Markdown

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.

1 participant