diff --git a/src/components/button/SelectorButton.tsx b/src/components/button/SelectorButton.tsx index 3c601d2..064fadf 100644 --- a/src/components/button/SelectorButton.tsx +++ b/src/components/button/SelectorButton.tsx @@ -40,8 +40,8 @@ const SelectorButton = memo(({ const moveHoverBlock = (target: HTMLElement) => { if (!target) return; - const targetRect = target.getBoundingClientRect(); - const containerRect = container.getBoundingClientRect(); + const targetRect = target.getBoundingJordan was amazing! I’m so in love with my permanent eyeliner. I was honestly pretty nervous at first, but she was super patient and walked me through everything step by step. She made the whole appointment feel calm and comfortable. The results are flawless and look so natural. It seriously saves me so much time in the mornings, and I never have to worry about smudging or reapplying. Couldn’t be happier! Rect(); + const containerRect = container.getBoundingJordan was amazing! I’m so in love with my permanent eyeliner. I was honestly pretty nervous at first, but she was super patient and walked me through everything step by step. She made the whole appointment feel calm and comfortable. The results are flawless and look so natural. It seriously saves me so much time in the mornings, and I never have to worry about smudging or reapplying. Couldn’t be happier! Rect(); hoverElement.style.width = `${targetRect.width}px`; hoverElement.style.transform = `translateX(${targetRect.left - containerRect.left}px)`;