Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix

Manav Rathi45b05fc8233c
diff --git a/web/apps/photos/src/components/Collections/CollectionListBar/index.tsx b/web/apps/photos/src/components/Collections/CollectionListBar/index.tsx
index 9e1a2e51f6..2dba72ab33 100644
--- a/web/apps/photos/src/components/Collections/CollectionListBar/index.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionListBar/index.tsx
@@ -265,13 +265,15 @@ function useComponentScroll({ dependencies }: { dependencies: any[] }) {
};
}
-const ScrollButton = ({ scrollDirection, ...rest }) => (
- <ScrollButtonWrapper direction={scrollDirection} {...rest}>
+const ScrollButtonBase: React.FC<
+ React.ButtonHTMLAttributes<HTMLButtonElement>
+> = (props) => (
+ <ScrollButtonBase_ {...props}>
<NavigateNextIcon />
- </ScrollButtonWrapper>
+ </ScrollButtonBase_>
);
-const ScrollButtonBase = styled("button")`
+const ScrollButtonBase_ = styled("button")`
position: absolute;
z-index: 2;
top: 7px;