Skip to content

Commit

Permalink
fix: bug with scroll snap behaviour, closes #1757
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Sep 30, 2021
1 parent fcf4a67 commit 3890723
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/clean-trains-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@stacks/wallet-web': patch
---

Fixes bug where it auto-scrolls up
1 change: 0 additions & 1 deletion src/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export const Header: React.FC<HeaderProps> = memo(props => {
alignItems={hideActions ? 'center' : 'flex-start'}
justifyContent="space-between"
position="relative"
scrollSnapAlign="start"
{...rest}
>
{!title ? (
Expand Down
1 change: 0 additions & 1 deletion src/components/popup/container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export const PopupContainer: React.FC<PopupHomeProps> = ({ children, header, req
maxHeight="100vh"
position="relative"
overflow="auto"
scrollSnapType="y proximity"
>
{header || null}
<Flex
Expand Down
2 changes: 1 addition & 1 deletion src/features/hiro-messages/hiro-messages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const HiroMessages = (props: FlexProps) => {
if (!messages || !messages.global || !messages.global[0]) return null;

return (
<Box pt="tight" scrollSnapAlign="start" scrollPadding="20%">
<Box pt="tight">
<Flex background="#F7F8FD" borderRadius="8px" p="base" {...props}>
<HiroMessageItem {...messages.global[0]} />
</Flex>
Expand Down

1 comment on commit 3890723

@vercel
Copy link

@vercel vercel bot commented on 3890723 Sep 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.