Skip to content

Commit

Permalink
chore: Refactor TooltipContent in GraphData component
Browse files Browse the repository at this point in the history
  • Loading branch information
HasanYahya101 committed Jun 7, 2024
1 parent e923ff4 commit 4a0092a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/component/playground.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,12 +315,14 @@ function GraphData({ check, testData, setTestData, setCheck }) {
</Button>
</TooltipTrigger>
<TooltipContent>

<h1 className="text-lg font-semibold p-4">{longName}</h1>
<div className="text-sm text-gray-500 dark:text-gray-400 max-w-[90vh] p-4 max-h-[40vh] overflow-y-auto"
<div className="text-sm text-gray-500 dark:text-gray-400 p-4 overflow-y-auto max-h-[40vh] w-full max-w-sm"
style={{ scrollbarWidth: "none" }}
>
{companydescription}
</div>

</TooltipContent>
</Tooltip>
</TooltipProvider>
Expand Down

0 comments on commit 4a0092a

Please sign in to comment.