mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
wip: minor fixes
This commit is contained in:
@@ -19,6 +19,7 @@ export function geminiScrollbar() {
|
||||
let scrollRoot = elem.parent();
|
||||
let scroller = elem;
|
||||
|
||||
console.log('scroll');
|
||||
if (attrs.grafanaScrollbar && attrs.grafanaScrollbar === 'scrollonroot') {
|
||||
scrollRoot = scroller;
|
||||
}
|
||||
|
||||
@@ -5,9 +5,7 @@ coreModule.directive('dashClass', function($timeout) {
|
||||
return {
|
||||
link: function($scope, elem) {
|
||||
$scope.ctrl.dashboard.events.on('view-mode-changed', function(panel) {
|
||||
$timeout(() => {
|
||||
elem.toggleClass('panel-in-fullscreen', panel.fullscreen === true);
|
||||
}, 10);
|
||||
elem.toggleClass('panel-in-fullscreen', panel.fullscreen === true);
|
||||
});
|
||||
|
||||
elem.toggleClass('panel-in-fullscreen', $scope.ctrl.dashboard.meta.fullscreen === true);
|
||||
|
||||
@@ -165,7 +165,7 @@ export class DashboardGrid extends React.Component<DashboardGridProps, any> {
|
||||
|
||||
componentDidMount() {
|
||||
setTimeout(() => {
|
||||
this.setState({ animated: false });
|
||||
this.setState({ animated: true });
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,11 @@
|
||||
.react-resizable-handle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
// the react-grid has a height transition
|
||||
.react-grid-layout {
|
||||
transition-property: none;
|
||||
}
|
||||
}
|
||||
|
||||
@include media-breakpoint-down(sm) {
|
||||
|
||||
Reference in New Issue
Block a user