From 69f33733df87e1f122c5cbce78d799f9af585407 Mon Sep 17 00:00:00 2001 From: PhilReact Date: Thu, 20 Mar 2025 18:26:01 +0200 Subject: [PATCH] fix app container overflow --- src/App-styles.ts | 3 ++- src/components/Apps/AppViewerContainer.tsx | 4 ++-- src/components/Apps/AppsDesktop.tsx | 4 ++-- src/components/Apps/AppsDevMode.tsx | 4 ++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/App-styles.ts b/src/App-styles.ts index 08773ea..4fcf3c0 100644 --- a/src/App-styles.ts +++ b/src/App-styles.ts @@ -16,7 +16,8 @@ export const AppContainer = styled(Box)(({ theme }) => ({ width: "100vw", background: "rgba(39, 40, 44, 1)", height: "100vh", - radius: "15px" + radius: "15px", + overflow: 'hidden' })); export const AuthenticatedContainer = styled(Box)(({ theme }) => ({ display: "flex", diff --git a/src/components/Apps/AppViewerContainer.tsx b/src/components/Apps/AppViewerContainer.tsx index 9da90c4..5e6d086 100644 --- a/src/components/Apps/AppViewerContainer.tsx +++ b/src/components/Apps/AppViewerContainer.tsx @@ -35,8 +35,8 @@ const AppViewerContainer = React.forwardRef(({ app, isSelected, hide, isDevMode, } style={{ - position: (!isSelected || hide) && 'absolute', - left: (!isSelected || hide) && '10000000px', + position: (!isSelected || hide) && 'fixed', + left: (!isSelected || hide) && '-200vw', height: customHeight ? customHeight : !isMobile ? '100vh' : `calc(${rootHeight} - 60px - 45px)`, border: 'none', width: '100%', diff --git a/src/components/Apps/AppsDesktop.tsx b/src/components/Apps/AppsDesktop.tsx index 10f0bd3..eb7ab49 100644 --- a/src/components/Apps/AppsDesktop.tsx +++ b/src/components/Apps/AppsDesktop.tsx @@ -313,8 +313,8 @@ export const AppsDesktop = ({ mode, setMode, show , myName, goToHome, setDesktop return ( diff --git a/src/components/Apps/AppsDevMode.tsx b/src/components/Apps/AppsDevMode.tsx index d569741..d4edc0c 100644 --- a/src/components/Apps/AppsDevMode.tsx +++ b/src/components/Apps/AppsDevMode.tsx @@ -217,8 +217,8 @@ export const AppsDevMode = ({ mode, setMode, show , myName, goToHome, setDesktop