diff --git a/scm-ui/ui-components/src/layout/SecondaryNavigationColumn.tsx b/scm-ui/ui-components/src/layout/SecondaryNavigationColumn.tsx
index 4a3dfd0c67..9ec0e125d1 100644
--- a/scm-ui/ui-components/src/layout/SecondaryNavigationColumn.tsx
+++ b/scm-ui/ui-components/src/layout/SecondaryNavigationColumn.tsx
@@ -23,13 +23,26 @@
*/
import React, { FC } from "react";
import styled from "styled-components";
+import { useSecondaryNavigation } from "../useSecondaryNavigation";
-const SecondaryColumn = styled.div`
+const SecondaryColumn = styled.div<{ collapsed: boolean }>`
flex: 0 0 auto;
+ /* Navigation width should be as constant as possible. */
+ width: ${(props: { collapsed: boolean }) => (props.collapsed ? "5.5rem" : "16rem")};
+ /* Render this column to full size if column construct breaks (page size too small). */
+ @media (max-width: 785px) {
+ width: 100%;
+ }
`;
const SecondaryNavigationColumn: FC = ({ children }) => {
- return {children};
+ const { collapsed } = useSecondaryNavigation();
+
+ return (
+
+ {children}
+
+ );
};
export default SecondaryNavigationColumn;