Dashboard: fix view panel mode for Safari / iOS (#28702) (#28755)

* fix(dashboard): flex-basis so child height percentages are respected

* fix(dashboard): reset scrollTop when entering view panel mode

(cherry picked from commit 87ba1b67b7)

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
This commit is contained in:
Grot (@grafanabot)andJack Westbrook authored and GitHub committed 2020-11-02 17:23:31 +01:00
1 parent 88ae4c0e64
commit 6a2d9224f1
2 files changed
+2

No files matched your search

@@ -145,6 +145,7 @@ export class DashboardPage extends PureComponent<Props, State> {
this.setState({
viewPanel: panel,
rememberScrollTop: this.state.scrollTop,
updateScrollTop: 0,
});
});
}
+1
View File
@@ -18,6 +18,7 @@
.dashboard-content {
padding: $dashboard-padding;
flex-basis: 100%;
flex-grow: 1;
}