Commit 936594f5 by Torkel Ödegaard Committed by GitHub

DashboardSettings: Fixed scrolling (#23108)

parent 4c5005e5
......@@ -9,6 +9,7 @@ import { DashboardModel } from '../../state/DashboardModel';
import { BackButton } from 'app/core/components/BackButton/BackButton';
import { e2e } from '@grafana/e2e';
import { updateLocation } from 'app/core/actions';
import { CustomScrollbar } from '@grafana/ui';
export interface Props {
dashboard: DashboardModel | null;
......@@ -57,7 +58,9 @@ export class DashboardSettings extends PureComponent<Props> {
<span>{dashboard.title} / Settings</span>
</div>
</div>
<CustomScrollbar>
<div className="dashboard-settings__body1" ref={element => (this.element = element)} />
</CustomScrollbar>
</div>
);
}
......
......@@ -8,15 +8,17 @@
bottom: 0;
z-index: $zindex-modal;
background: $body-bg;
display: flex;
flex-direction: column;
}
.dashboard-settings__body1 {
height: calc(100% - #{$navbarHeight});
min-height: 100%;
width: 100%;
}
.dashboard-settings__body2 {
height: 100%;
min-height: 100%;
width: 100%;
display: flex;
flex-direction: row;
......
......@@ -4,7 +4,7 @@
height: $navbarHeight;
padding: 0 16px 0 60px;
display: flex;
flex-grow: 1;
flex-grow: 0;
border-bottom: 1px solid transparent;
transition-duration: 350ms;
transition-timing-function: ease-in-out;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment