Skip to content

Commit

Permalink
Merge pull request #1173 from umrkhn/feat/1162_update-tooltip-text
Browse files Browse the repository at this point in the history
[GH-1162] Update Resources Tooltip on Explorer page
  • Loading branch information
mlabouardy authored Nov 9, 2023
2 parents 30c6ab5 + 744810d commit 34ecdf8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions dashboard/components/explorer/DependencyGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,13 +277,14 @@ const DependencyGraph = ({ data }: DependencyGraphProps) => {
)}
<div className="absolute bottom-0 w-full">
<div className="flex w-full flex-col items-center gap-2 sm:flex-row sm:justify-between">
<div className="flex gap-2 overflow-visible bg-black-100 text-black-400">
{data?.nodes?.length} Resources
<div className="flex items-center gap-2 bg-black-100 text-black-400">
<span>{data?.nodes?.length} Resources</span>
{!dataIsEmpty && (
<div className="relative">
<div className="relative mt-[2px]">
<WarningIcon className="peer" height="16" width="16" />
<Tooltip bottom="xs" align="left" width="lg">
Only AWS resources are currently supported on the explorer.
Only AWS and CIVO resources are currently supported on the
explorer.
</Tooltip>
</div>
)}
Expand Down

0 comments on commit 34ecdf8

Please sign in to comment.