Skip to content

Commit

Permalink
fix(ui): prevent text descender cutoff in user dropdown (#19309)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddoemonn authored Feb 19, 2025
1 parent dfb2232 commit 050a030
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/features/shell/user-dropdown/UserDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ declare global {
interface UserDropdownProps {
small?: boolean;
}

export function UserDropdown({ small }: UserDropdownProps) {
const { isPlatformUser } = useGetUserAttributes();
const { t } = useLocale();
Expand Down Expand Up @@ -80,7 +81,7 @@ export function UserDropdown({ small }: UserDropdownProps) {
<span
className={classNames(
small ? "h-4 w-4" : "h-5 w-5 ltr:mr-2 rtl:ml-2",
"relative flex-shrink-0 rounded-full "
"relative flex-shrink-0 rounded-full"
)}>
<Avatar
size={small ? "xs" : "xsm"}
Expand All @@ -98,7 +99,7 @@ export function UserDropdown({ small }: UserDropdownProps) {
{!small && (
<span className="flex flex-grow items-center gap-2">
<span className="w-24 flex-shrink-0 text-sm leading-none">
<span className="text-emphasis block truncate font-medium">
<span className="text-emphasis block truncate py-0.5 font-medium leading-normal">
{user.name || "Nameless User"}
</span>
</span>
Expand Down

0 comments on commit 050a030

Please sign in to comment.