Skip to content

Commit

Permalink
Add comment to clarify behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
thsparks committed Oct 23, 2024
1 parent 1e62339 commit 84c39a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webapp/src/components/tutorial/TutorialCallout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export function TutorialCallout(props: TutorialCalloutProps) {
} else {
setBottom("unset");

// Set the top of the hint to the bottom of wrapper div (which aligns to the hint button).
const popupBottom = popupRef.current?.getBoundingClientRect().bottom;
setTop(popupBottom ? `${popupBottom}px` : "unset");
}
Expand Down

0 comments on commit 84c39a5

Please sign in to comment.