Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
chapters scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Byledbal committed May 17, 2024
1 parent 6709042 commit 89e5912
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ export function HistoryChapters({ articles }: Props) {

const scrollLeft = () => {
if (containerRef.current) {
const scrollAmount = containerRef.current.clientWidth / 3;
const scrollAmount = 301;
containerRef.current.scrollLeft -= scrollAmount;
}
};

const scrollRight = () => {
if (containerRef.current) {
const scrollAmount = containerRef.current.clientWidth / 3;
const scrollAmount = 301;
containerRef.current.scrollLeft += scrollAmount;
}
};
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/HomePage/HomePage.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}

.intro {
height: 90vh;
height: 85vh;
display: flex;
flex-direction: row;
align-items: flex-end;
Expand Down
4 changes: 1 addition & 3 deletions client/src/components/Menu/Menu.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

.menu {
transition: opacity 0.5s ease;
position: -webkit-sticky;
position: sticky;
top: index.$s-margin;
padding-top: index.$base-margin;
display: flex;
z-index: 1;
justify-content: center;
Expand Down

0 comments on commit 89e5912

Please sign in to comment.