Skip to content

Commit

Permalink
Fix: add hit areas to the tooltip (#56)
Browse files Browse the repository at this point in the history
Previously, when the tooltip is displayed below the text (= when the text is at the top of the window), it always disappears when trying to move the mouse pointer from the text onto it, because their is a gap between the text and the tooltip.
  • Loading branch information
untunt authored Dec 1, 2024
1 parent 8bfd0a3 commit eb172a2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Components/TooltipChar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,19 @@ import { noop } from "../consts";
import type { Entry } from "../consts";

const Wrapper = styled.div`
padding-bottom: 3px;
padding-top: 10px;
margin-top: -10px;
padding-bottom: 5px;
margin-bottom: -5px;
overflow-wrap: break-word;
white-space: pre-wrap;
white-space: break-spaces;
`;
const Item = styled.p<{ textColor: string }>`
margin: 2px 10px;
&:last-child {
margin-bottom: 5px;
}
color: ${({ textColor }) => textColor};
${({ onClick }) =>
onClick &&
Expand Down

0 comments on commit eb172a2

Please sign in to comment.