From 7cd3936b3ba982e0c8f09ca3497e686b137bea92 Mon Sep 17 00:00:00 2001 From: Kazi Date: Sun, 2 Jun 2024 15:28:04 +0600 Subject: [PATCH] Fix styles when scrolling in dark mode --- urbackupserver/www2/src/App.tsx | 22 +++++++++++++++---- .../www2/src/components/StackStyles.tsx | 5 ++--- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/urbackupserver/www2/src/App.tsx b/urbackupserver/www2/src/App.tsx index 6753f9c5..518ec465 100644 --- a/urbackupserver/www2/src/App.tsx +++ b/urbackupserver/www2/src/App.tsx @@ -159,7 +159,7 @@ const App: React.FunctionComponent = () => { const styles = useStackStyles(); return ( - + @@ -167,12 +167,26 @@ const App: React.FunctionComponent = () => {
-
-
+
+
{snap.loggedIn && (
diff --git a/urbackupserver/www2/src/components/StackStyles.tsx b/urbackupserver/www2/src/components/StackStyles.tsx index abf3984d..27ea58e4 100644 --- a/urbackupserver/www2/src/components/StackStyles.tsx +++ b/urbackupserver/www2/src/components/StackStyles.tsx @@ -6,7 +6,7 @@ export const useStackStyles = makeStyles({ flexDirection: "column", flexWrap: "nowrap", width: "auto", - height: "100%", + minHeight: "100vh", boxSizing: "border-box", "> *": { textOverflow: "ellipsis", @@ -43,7 +43,6 @@ export const useStackStyles = makeStyles({ itemGrow: { height: "auto", width: "auto", - flexShrink: 1, - flexGrow: 1, + flex: 1, }, });