fix: width and avatar in orgs app install dropdown (#10447)

This commit is contained in:
Udit Takkar authored and GitHub committed 2023-07-28 16:04:49 +02:00
1 parent 344b9e9b2b
commit 063c7f6244
2 files changed
+3 -2

No files matched your search

@@ -77,7 +77,7 @@ const getUserAdminTeams = async ({
const userObject = {
id: user.id,
name: user.name || "Nameless",
logo: user?.avatar,
logo: user?.avatar === "" ? null : user?.avatar,
isUser: true,
...(includeCredentials && { credentials: user.credentials }),
};
+2 -1
View File
@@ -228,6 +228,7 @@ const InstallAppButtonChild = ({
</DropdownMenuTrigger>
<DropdownMenuPortal>
<DropdownMenuContent
className="w-56"
onInteractOutside={(event) => {
if (mutation.isLoading) event.preventDefault();
}}>
@@ -261,7 +262,7 @@ const InstallAppButtonChild = ({
team.isUser ? addAppMutationInput : { ...addAppMutationInput, teamId: team.id }
);
}}>
<p>
<p className="text-left">
{team.name} {isInstalledTeamOrUser && `(${t("installed")})`}
</p>
</DropdownItem>