Skip to content

Commit

Permalink
chore: flip tooltip orientation to prevent clipping
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-golovanov committed Dec 23, 2024
1 parent fdf874a commit 4d47a03
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const StyledTooltip = styled.span<{ width?: number }>`
position: absolute;
z-index: 100000;
max-width: 300px;
bottom: 125%;
top: 125%;
left: calc(-10px + ${(props) => (props.width ? props.width / 2 : 0)}px);
margin-left: -60px;
Expand All @@ -165,14 +165,14 @@ const StyledTooltip = styled.span<{ width?: number }>`
&::after {
content: "";
position: absolute;
top: 100%;
bottom: 100%;
left: 50%;
height: 10px;
width: 10px;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: var(--ads-v2-color-bg-emphasis-max) transparent transparent
border-color: transparent transparent var(--ads-v2-color-bg-emphasis-max)
transparent;
}
Expand Down

0 comments on commit 4d47a03

Please sign in to comment.