Skip to content

Commit a76a243

Browse files
committed
fix tooltip positioning
1 parent ce46b06 commit a76a243

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

site/src/pages/OrganizationSettingsPage/IdpSyncPage/IdpGroupSyncForm.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,12 @@ const GroupRow: FC<GroupRowProps> = ({
335335
<TooltipTrigger asChild>
336336
<TriangleAlert className="size-icon-xs cursor-pointer text-content-warning" />
337337
</TooltipTrigger>
338-
<TooltipContent className="p-2 text-xs text-content-secondary max-w-sm">
338+
<TooltipContent
339+
align="start"
340+
alignOffset={-8}
341+
sideOffset={8}
342+
className="p-2 text-xs text-content-secondary max-w-sm"
343+
>
339344
This value has not be seen in the specified claim field
340345
before. You might want to check your IdP configuration and
341346
ensure that this value is not misspelled.

site/src/pages/OrganizationSettingsPage/IdpSyncPage/IdpRoleSyncForm.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,12 @@ const RoleRow: FC<RoleRowProps> = ({
253253
<TooltipTrigger asChild>
254254
<TriangleAlert className="size-icon-xs cursor-pointer text-content-warning" />
255255
</TooltipTrigger>
256-
<TooltipContent className="p-2 text-xs text-content-secondary max-w-sm">
256+
<TooltipContent
257+
align="start"
258+
alignOffset={-8}
259+
sideOffset={8}
260+
className="p-2 text-xs text-content-secondary max-w-sm"
261+
>
257262
This value has not be seen in the specified claim field
258263
before. You might want to check your IdP configuration and
259264
ensure that this value is not misspelled.

0 commit comments

Comments
 (0)