Skip to content

Commit

Permalink
client: modify tranistion
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham-Lal committed Apr 22, 2024
1 parent 5734a39 commit a5b2752
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function App() {
const handleScroll = () => {
if (mainRef.current) {
const st = mainRef.current.scrollTop;
if (st > lastScrollTop && st > 200) setIsScrollingUp(false);
if (st > lastScrollTop && st > 70) setIsScrollingUp(false);
else setIsScrollingUp(true);
lastScrollTop = st <= 0 ? 0 : st;
}
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/modal/auth/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
@media screen and (max-width: 480px) {
.auth__container {
width: 100%;
height: 100dvh;
height: 100%;
flex-direction: column;
border: none;
border-radius: unset;
Expand Down
20 changes: 10 additions & 10 deletions client/src/components/sidebar/left-sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,6 @@
}

@media screen and (max-width: 767px) {
#left-sidebar.reveal {
margin-bottom: 0;
transition: all 0.15s ease-in;
}

#left-sidebar.hide {
margin-bottom: -60px;
transition: all 0.3s ease-out;
}

#left-sidebar ul {
gap: 30px;
}
Expand Down Expand Up @@ -166,6 +156,16 @@
border-right: none;
}

#left-sidebar.reveal {
margin-bottom: 0;
transition: all 0.2s ease-in;
}

#left-sidebar.hide {
margin-bottom: -60px;
transition: all 0.3s ease-out;
}

#left-sidebar .logo__wrapper,
#left-sidebar .profile__container {
display: none;
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/sidebar/right-sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
@media screen and (max-width: 480px) {
#right-sidebar.reveal {
margin-top: 0;
transition: all 0.15s ease-in;
transition: all 0.2s ease-in;
}

#right-sidebar.hide {
Expand Down

0 comments on commit a5b2752

Please sign in to comment.