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

Fixed name overflow in user card #11094

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/pages/Organization/OrganizationUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,10 @@ export default function OrganizationUsers({ id, navOrganizationId }: Props) {
<div className="flex flex-col min-w-0 flex-1">
<div className="flex flex-col gap-1">
<div className="flex items-start justify-between">
<h1 className="text-base font-bold break-words pr-2">
<h1
className="text-base font-bold pr-2 overflow-hidden text-ellipsis whitespace-nowrap max-w-48 sm:max-w-80 md:max-w-full"
title={`${userRole.user.first_name} ${userRole.user.last_name}`}
>
{userRole.user.first_name}{" "}
{userRole.user.last_name}
</h1>
Expand Down