Skip to content

fix(ui): Update org switcher avatar alignment and radii#9148

Merged
alexcarpenter merged 2 commits into
mainfrom
carp/fix-org-switcher-trigger-avatar
Jul 13, 2026
Merged

fix(ui): Update org switcher avatar alignment and radii#9148
alexcarpenter merged 2 commits into
mainfrom
carp/fix-org-switcher-trigger-avatar

Conversation

@alexcarpenter

@alexcarpenter alexcarpenter commented Jul 13, 2026

Copy link
Copy Markdown
Member

Description

  • Reduce left padding to be consistent with block padding
  • Fix avatar radii sizing
BEFORE AFTER
Screenshot 2026-07-13 at 3 29 42 PM Screenshot 2026-07-13 at 3 29 20 PM

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Summary by CodeRabbit

  • Style
    • Improved organization switcher trigger spacing for better small-size alignment.
    • Updated organization avatar styling to use a smaller, more proportional border radius in the switcher trigger.

@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
clerk-js-sandbox Ready Ready Preview, Comment Jul 13, 2026 7:39pm
swingset Ready Ready Preview, Comment Jul 13, 2026 7:39pm

Request Review

@changeset-bot

changeset-bot Bot commented Jul 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5839078

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@clerk/ui Patch
@clerk/chrome-extension Patch
@clerk/swingset Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Updated the organization switcher trigger’s padding pattern, applied a small border radius to organization avatars, and added a patch changeset.

Changes

Organization switcher styling

Layer / File(s) Summary
Trigger spacing and avatar styling
packages/ui/src/components/OrganizationSwitcher/OrganizationSwitcherTrigger.tsx, .changeset/org-switcher-trigger-avatar-radius.md
Uses four-value theme spacing for padding, passes a theme-based avatar border-radius override to OrganizationPreview, and records a patch release.

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

Poem

A bunny hopped through spacing bright,
Four tiny values made things right.
The avatar wore a rounded trim,
A polished look from edge to brim.
“Ship it!” thumped my paws with glee.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main UI changes: org switcher alignment/padding and avatar radius adjustments.
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.

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

@github-actions

github-actions Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

API Changes Report

Generated by Break Check on 2026-07-13T19:40:18.588Z

Summary

Metric Count
Packages analyzed 19
Packages with changes 0
🔴 Breaking changes 0
🟡 Non-breaking changes 0
🟢 Additions 0

No API Changes Detected

All packages have stable APIs with no detected changes.


Report generated by Break Check

Last ran on 5839078.

@pkg-pr-new

pkg-pr-new Bot commented Jul 13, 2026

Copy link
Copy Markdown

Open in StackBlitz

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@9148

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@9148

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@9148

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@9148

@clerk/electron

npm i https://pkg.pr.new/@clerk/electron@9148

@clerk/electron-passkeys

npm i https://pkg.pr.new/@clerk/electron-passkeys@9148

@clerk/eslint-plugin

npm i https://pkg.pr.new/@clerk/eslint-plugin@9148

@clerk/expo

npm i https://pkg.pr.new/@clerk/expo@9148

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@9148

@clerk/express

npm i https://pkg.pr.new/@clerk/express@9148

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@9148

@clerk/hono

npm i https://pkg.pr.new/@clerk/hono@9148

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@9148

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@9148

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@9148

@clerk/react

npm i https://pkg.pr.new/@clerk/react@9148

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@9148

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@9148

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@9148

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@9148

@clerk/ui

npm i https://pkg.pr.new/@clerk/ui@9148

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@9148

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@9148

commit: 5839078

@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 @.changeset/org-switcher-trigger-avatar-radius.md:
- Line 5: Update the changeset release note for the OrganizationSwitcher trigger
to document both user-visible changes: the reduced avatar border radius and the
accompanying left-padding adjustment. Keep the existing avatar-radius
description and add the padding change without altering unrelated changeset
metadata.
🪄 Autofix (Beta)

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 YAML (base), Repository UI (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: f3394a7a-e995-40be-93b4-1b06b2491868

📥 Commits

Reviewing files that changed from the base of the PR and between c60d783 and 5839078.

📒 Files selected for processing (1)
  • .changeset/org-switcher-trigger-avatar-radius.md

'@clerk/ui': patch
---

Reduce the organization avatar's border radius in the `OrganizationSwitcher` trigger so it stays proportional at the smaller trigger size.

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.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Document the trigger padding change in the changeset.

The release note mentions the avatar-radius adjustment but omits the accompanying left-padding change. Please describe both user-visible updates so the @clerk/ui changelog accurately reflects this patch.

This follows the stated PR objective, which includes both trigger padding and avatar-radius changes.

🤖 Prompt for 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.

In @.changeset/org-switcher-trigger-avatar-radius.md at line 5, Update the
changeset release note for the OrganizationSwitcher trigger to document both
user-visible changes: the reduced avatar border radius and the accompanying
left-padding adjustment. Keep the existing avatar-radius description and add the
padding change without altering unrelated changeset metadata.

@maxyinger maxyinger left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

gah. Good catch 🚀

@alexcarpenter alexcarpenter merged commit 6cc1890 into main Jul 13, 2026
53 checks passed
@alexcarpenter alexcarpenter deleted the carp/fix-org-switcher-trigger-avatar branch July 13, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants