Explorar el Código

fix banner space (#4436)

jusrhee hace 2 años
padre
commit
430270a288
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      dashboard/src/main/home/Home.tsx

+ 3 - 3
dashboard/src/main/home/Home.tsx

@@ -374,7 +374,7 @@ const Home: React.FC<Props> = (props) => {
       theme={currentProject?.simplified_view_enabled ? midnight : standard}
     >
       <DeploymentTargetProvider>
-        <StyledHome isHosted={currentProject?.sandbox_enabled ?? false}>
+        <StyledHome>
           <ModalHandler setRefreshClusters={setForceRefreshClusters} />
           {currentOverlay &&
             createPortal(
@@ -666,11 +666,11 @@ const DashboardWrapper = styled.div`
   height: fit-content;
 `;
 
-const StyledHome = styled.div<{ isHosted: boolean }>`
+const StyledHome = styled.div`
   width: 100vw;
   height: 100vh;
   position: fixed;
-  top: ${(props) => (props.isHosted ? "35px" : "0")};
+  top: 0;
   left: 0;
   margin: 0;
   user-select: none;