-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix scroll bottom button flickering (#639)
- Loading branch information
1 parent
1981d2a
commit 5ee2f7e
Showing
4 changed files
with
35 additions
and
15 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
frontend/src/components/atoms/buttons/scrollDownButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import ExpandCircleDown from '@mui/icons-material/ExpandCircleDown'; | ||
import IconButton from '@mui/material/IconButton'; | ||
|
||
interface Props { | ||
onClick?: () => void; | ||
} | ||
|
||
export default function ScrollDownButton({ onClick }: Props) { | ||
return ( | ||
<IconButton | ||
sx={{ | ||
width: 'fit-content', | ||
margin: 'auto', | ||
position: 'absolute', | ||
zIndex: 1, | ||
transform: 'translateY(-100%)', | ||
top: 0, | ||
left: 0, | ||
right: 0 | ||
}} | ||
onClick={onClick} | ||
> | ||
<ExpandCircleDown fontSize="large" /> | ||
</IconButton> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters