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 (