Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasiliy Trushin committed Jan 21, 2025
1 parent 6669850 commit 022d36a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions statshouse-ui/src/components2/StickyTop/StickyTop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ interface StickyTopProps extends HTMLAttributes<HTMLDivElement> {
children: ReactNode;
}

export const StickyTop = memo(function StickyTop({ children, ...props }: StickyTopProps) {
export const StickyTop = memo(function StickyTop({ children, className, ...props }: StickyTopProps) {
const scrollY = useWindowSize((s) => s.scrollY > 16);

return (
<div className={cn('sticky-top mt-2 bg-body', scrollY && 'shadow-sm small')} {...props}>
<div className={cn('sticky-top mt-2 bg-body mb-3', scrollY && 'shadow-sm small', className)} {...props}>
{children}
</div>
);
Expand Down

0 comments on commit 022d36a

Please sign in to comment.