diff --git a/rsconcept/frontend/src/App.tsx b/rsconcept/frontend/src/App.tsx index 9c702e2c..79a1201e 100644 --- a/rsconcept/frontend/src/App.tsx +++ b/rsconcept/frontend/src/App.tsx @@ -1,3 +1,4 @@ +import { useMemo } from 'react'; import { Route, Routes } from 'react-router-dom'; import Footer from './components/Footer'; @@ -18,6 +19,17 @@ import UserProfilePage from './pages/UserProfilePage'; function App () { const { noNavigation } = useConceptTheme(); + const scrollWindowSize = useMemo(() => { + return !noNavigation ? + 'max-h-[calc(100vh-4.5rem)]' + : 'max-h-[100vh]'; + }, [noNavigation]); + const mainSize = useMemo(() => { + return !noNavigation ? + 'min-h-[calc(100vh-12rem)]' + : 'min-h-[calc(100vh-8rem)] '; + }, [noNavigation]); + return (
@@ -27,8 +39,9 @@ function App () { draggable={false} pauseOnFocusLoss={false} /> -
-
+ +
+
} /> diff --git a/rsconcept/frontend/src/components/Footer.tsx b/rsconcept/frontend/src/components/Footer.tsx index 2b486722..d112b970 100644 --- a/rsconcept/frontend/src/components/Footer.tsx +++ b/rsconcept/frontend/src/components/Footer.tsx @@ -5,7 +5,7 @@ import { GithubIcon } from './Icons'; function Footer() { return ( -