Skip to content

Commit

Permalink
feat: adjusted shrink mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fung committed Jul 28, 2020
1 parent ec2e506 commit 6301ecc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/components/surfaces/AppBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const BaseComponent = styled((props) => <BaseAppBar {...props} />)`
export const AppBar = (props: AppBarProps) => {
// const [shouldHideHeader, setShouldHideHeader] = useState(false);
const [shouldShrink, setShouldShowShadow] = useState(false);
const MINIMUM_SCROLL = 150;
const MINIMUM_SCROLL = 180;
const TIMEOUT_DELAY = 400;

useDocumentScrollThrottled((callbackData) => {
Expand Down
3 changes: 1 addition & 2 deletions src/app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ function App() {
display: flex;
justify-content: center;
align-items: center;
z-index: 200;
z-index: 20;
position: fixed;
width: 1040px;
top: 40px;
Expand Down

0 comments on commit 6301ecc

Please sign in to comment.