reiji-h 1 год назад
Родитель
Сommit
6c968c5320

+ 3 - 0
apps/app/src/client/components/Sidebar/Sidebar.module.scss

@@ -44,6 +44,9 @@
         min-height: 50vh;
         max-height: calc(100vh - var.$grw-sidebar-nav-width * 2);
         border-radius: 0 4px 4px 0 ;
+        .simple-sidebar {
+          max-height: inherit;
+        }
       }
     }
   }

+ 1 - 8
apps/app/src/client/components/Sidebar/Sidebar.tsx

@@ -174,19 +174,12 @@ const CollapsibleContainer = memo((props: CollapsibleContainerProps): JSX.Elemen
   return (
     <div className={`flex-expand-horiz ${className}`} onMouseLeave={mouseLeaveHandler}>
       <Nav onPrimaryItemHover={primaryItemHoverHandler} />
-      {/* <SimpleBar
-        className={`sidebar-contents-container flex-grow-1 ${closedClass} ${openedClass}`}
-        style={{ width: collapsibleContentsWidth }}
-        ref={simpleBarRef}
-      >
-        {children}
-      </SimpleBar> */}
       <div
         className={`sidebar-contents-container flex-grow-1 overflow-hidden ${closedClass} ${openedClass}`}
         ref={sidebarScrollerRef}
       >
         <SimpleBar
-          className=""
+          className="simple-sidebar h-100"
           style={{ width: collapsibleContentsWidth }}
           autoHide={false}
         >