Skip to content

Commit

Permalink
Fix issue that width of Dashboard is somehow fixed. Issue: opendistro…
Browse files Browse the repository at this point in the history
  • Loading branch information
yizheliu-amazon committed Apr 17, 2020
1 parent 66bc75a commit a21e417
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions public/pages/Dashboard/Container/DashboardOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,13 @@ export function DashboardOverview() {
/>
<EuiSpacer />
<EuiFlexGroup justifyContent="spaceBetween">
<EuiFlexItem grow={7}>
<EuiFlexItem grow={6}>
<AnomaliesDistributionChart
allDetectorsSelected={true}
selectedDetectors={currentDetectors}
/>
</EuiFlexItem>
<EuiFlexItem grow={2}>
<EuiFlexItem grow={3}>
<AnomalousDetectorsList selectedDetectors={currentDetectors} />
</EuiFlexItem>
</EuiFlexGroup>
Expand Down
3 changes: 0 additions & 3 deletions public/pages/Dashboard/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,10 @@
}

.anomaly-distribution-subtitle {
height: 28px;
width: 505px;
color: #879196;
font-family: 'Helvetica Neue';
font-size: 12px;
letter-spacing: 0;
line-height: 14px;
}

.live-badge {
Expand Down
2 changes: 1 addition & 1 deletion public/pages/main/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function Main(props: MainProps) {
<EuiPageSideBar style={{ minWidth: 150 }} hidden={hideSideNavBar}>
<EuiSideNav style={{ width: 150 }} items={sideNav} />
</EuiPageSideBar>
<EuiPageBody>
<EuiPageBody restrictWidth={'70%'}>
<Switch>
<Route
path={APP_PATH.DASHBOARD}
Expand Down

0 comments on commit a21e417

Please sign in to comment.