mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
fixed mobile header breakpoint
This commit is contained in:
parent
e48f19309a
commit
e8a19597cb
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
padding-top: 100px + $gap;
|
padding-top: 100px + $gap;
|
||||||
|
|
||||||
@include tablet {
|
@include tablet {
|
||||||
padding-top: 64px + $gap;
|
padding-top: 72px + $gap;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.is_blurred {
|
&.is_blurred {
|
||||||
|
|
|
@ -39,7 +39,7 @@ const HeaderUnconnected: FC<IProps> = memo(
|
||||||
const onProfileClick = useCallback(() => authOpenProfile(username), [authOpenProfile, user]);
|
const onProfileClick = useCallback(() => authOpenProfile(username), [authOpenProfile, user]);
|
||||||
|
|
||||||
const onScroll = useCallback(() => {
|
const onScroll = useCallback(() => {
|
||||||
const active = window.scrollY > 64;
|
const active = window.scrollY > 32;
|
||||||
|
|
||||||
if (active !== is_scrolled) setIsScrolled(active);
|
if (active !== is_scrolled) setIsScrolled(active);
|
||||||
}, [is_scrolled, setIsScrolled]);
|
}, [is_scrolled, setIsScrolled]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue