Skip to content

Commit e529183

Browse files
committed
Add min-height
1 parent 85465f3 commit e529183

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

x-pack/plugins/apm/public/components/app/Main/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ import styled from 'styled-components';
99
import { Route, Switch } from 'react-router-dom';
1010
import { routes } from './routeConfig';
1111
import ScrollToTopOnPathChange from './ScrollToTopOnPathChange';
12-
import { px, units, unit } from '../../../style/variables';
12+
import { px, units, unit, elements } from '../../../style/variables';
1313
import ConnectRouterToRedux from '../../shared/ConnectRouterToRedux';
1414

1515
const MainContainer = styled.div`
1616
min-width: ${px(unit * 50)};
1717
padding: ${px(units.plus)};
18+
min-height: calc(100vh - ${elements.topNav});
1819
`;
1920

2021
export default function Main() {

x-pack/plugins/apm/public/style/variables.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,8 @@ export function truncate(width) {
9090
text-overflow: ellipsis;
9191
`;
9292
}
93+
94+
// height of specific elements
95+
export const elements = {
96+
topNav: '29px'
97+
};

0 commit comments

Comments
 (0)