feat: resolved merge reviews

This commit is contained in:
=
2025-07-02 01:16:16 +05:30
parent bf8d60fcdc
commit ec0603a464
5 changed files with 14 additions and 11 deletions

View File

@@ -21,7 +21,8 @@ import {
DropdownMenuItem,
DropdownMenuTrigger,
IconButton,
Input
Input,
Tooltip
} from "@app/components/v2";
import {
OrgPermissionActions,
@@ -112,7 +113,11 @@ export const ProjectSelect = () => {
<div>
<FontAwesomeIcon icon={faCube} className="text-xs" />
</div>
<div className="max-w-32 overflow-hidden text-ellipsis">{currentWorkspace?.name}</div>
<Tooltip content={currentWorkspace.name}>
<div className="max-w-32 overflow-hidden text-ellipsis whitespace-nowrap">
{currentWorkspace?.name}
</div>
</Tooltip>
</div>
</Link>
<DropdownMenuTrigger asChild>
@@ -170,8 +175,12 @@ export const ProjectSelect = () => {
}
>
<div className="flex items-center">
<div className="flex max-w-[165px] flex-1 items-center justify-between truncate">
{workspace.name}
<div className="flex flex-1 items-center justify-between overflow-hidden">
<Tooltip content={workspace.name}>
<div className="max-w-40 overflow-hidden truncate whitespace-nowrap">
{workspace.name}
</div>
</Tooltip>
</div>
<div>
<FontAwesomeIcon

View File

@@ -67,7 +67,6 @@ export const IdentityProjectRow = ({
});
}}
>
<Td className="max-w-0 truncate">{project.name}</Td>
<Td>{`${formatProjectRoleName(roles[0].role, roles[0].customRoleName)}${
roles.length > 1 ? ` (+${roles.length - 1})` : ""
}`}</Td>

View File

@@ -118,7 +118,6 @@ export const IdentityProjectsTable = ({ identityId, handlePopUpOpen }: Props) =>
</div>
</Th>
<Th>Type</Th>
<Th>Role</Th>
<Th>Added On</Th>
<Th className="w-5" />

View File

@@ -4,7 +4,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useNavigate } from "@tanstack/react-router";
import { createNotification } from "@app/components/notifications";
import { IconButton, Tag, Td, Tooltip, Tr } from "@app/components/v2";
import { IconButton, Td, Tooltip, Tr } from "@app/components/v2";
import { formatProjectRoleName } from "@app/helpers/roles";
import { useGetUserWorkspaces } from "@app/hooks/api";
import { TWorkspaceUser } from "@app/hooks/api/types";
@@ -61,9 +61,6 @@ export const UserProjectRow = ({
}}
>
<Td className="max-w-0 truncate">{project.name}</Td>
<Td>
<Tag size="xs">{project.type}</Tag>
</Td>
<Td>{`${formatProjectRoleName(roles[0].role, roles[0].customRoleName)}${
roles.length > 1 ? ` (+${roles.length - 1})` : ""
}`}</Td>

View File

@@ -123,7 +123,6 @@ export const UserProjectsTable = ({ membershipId, handlePopUpOpen }: Props) => {
</IconButton>
</div>
</Th>
<Th>Type</Th>
<Th>Role</Th>
<Th className="w-5" />
</Tr>