Forráskód Böngészése

minor fix for legacy panels

Torkel Ödegaard 7 éve
szülő
commit
4e089229fb

+ 1 - 0
public/app/features/dashboard/dashgrid/PanelHeader.tsx

@@ -26,6 +26,7 @@ export class PanelHeader extends React.Component<PanelHeaderProps, any> {
       {
         panelId: this.props.panel.id,
         fullscreen: true,
+        edit: null,
       },
       false
     );

+ 1 - 1
public/app/features/panel/panel_directive.ts

@@ -6,7 +6,7 @@ import baron from 'baron';
 var module = angular.module('grafana.directives');
 
 var panelTemplate = `
-  <div class="panel-container">
+  <div class="panel-container" ng-class="{'panel-container--is-editing': ctrl.panel.isEditing}">
     <div class="panel-header" ng-class="{'grid-drag-handle': !ctrl.panel.fullscreen}">
       <span class="panel-info-corner">
         <i class="fa"></i>

+ 4 - 0
public/sass/pages/_dashboard.scss

@@ -62,6 +62,10 @@ div.flot-text {
       opacity: 1;
     }
   }
+
+  &--is-editing {
+    height: auto;
+  }
 }
 
 .panel-content {