Browse Source

fix: profile activity items wouldn't load extra sets on scroll

Kristian Vos 2 years ago
parent
commit
a80cec6935
2 changed files with 3 additions and 4 deletions
  1. 2 3
      frontend/src/App.vue
  2. 1 1
      frontend/src/pages/Profile/Tabs/RecentActivity.vue

+ 2 - 3
frontend/src/App.vue

@@ -536,7 +536,8 @@ code {
 }
 
 html {
-	overflow: auto !important;
+	overflow-y: auto !important;
+	overflow-x: hidden;
 	height: 100%;
 	background-color: inherit;
 	font-size: 14px;
@@ -545,12 +546,10 @@ html {
 body {
 	background-color: var(--light-grey);
 	color: var(--dark-grey);
-	height: 100%;
 	line-height: 1.4285714;
 	font-size: 1rem;
 	font-family: "Inter", Helvetica, Arial, sans-serif;
 	max-width: 100%;
-	overflow-x: hidden;
 }
 
 .app {

+ 1 - 1
frontend/src/pages/Profile/Tabs/RecentActivity.vue

@@ -61,7 +61,7 @@ const getSet = () => {
 };
 
 const handleScroll = () => {
-	const scrollPosition = document.body.clientHeight + window.scrollY;
+	const scrollPosition = window.scrollY + window.innerHeight;
 	const bottomPosition = document.body.scrollHeight;
 
 	if (scrollPosition + 400 >= bottomPosition) getSet();