mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
small ui fix
This commit is contained in:
parent
9318e2b6ce
commit
4c5673a350
@ -51,10 +51,9 @@ export function Stepper({ children, currentStep, onStepChange, className }: Step
|
||||
useEffect(() => {
|
||||
const updateDimensions = () => {
|
||||
if (contentRef.current) {
|
||||
const rect = contentRef.current.getBoundingClientRect();
|
||||
setDimensions({
|
||||
width: rect.width,
|
||||
height: rect.height,
|
||||
width: contentRef.current.offsetWidth,
|
||||
height: contentRef.current.offsetHeight,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user