Skip to content

Commit

Permalink
fix: tooltip added hidden space to the bottom of chat
Browse files Browse the repository at this point in the history
  • Loading branch information
miksuh-dev committed Nov 30, 2022
1 parent 2f6051d commit 1d1a24e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/Tooltip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const Tooltip: Component<Props> = (props) => {
return (
<div class="group relative mt-1 flex cursor-pointer whitespace-nowrap">
{props.children}
<div class="tooltip pointer-events-none absolute top-full -left-1/2 z-50 mt-2 p-2 text-center text-xs opacity-0 group-hover:opacity-100">
<div class="tooltip pointer-events-none absolute top-full -left-1/2 z-50 mt-2 hidden p-2 text-center text-xs opacity-0 group-hover:block group-hover:opacity-100">
{props.text}
</div>
</div>
Expand Down

0 comments on commit 1d1a24e

Please sign in to comment.