@@ -53,8 +53,7 @@ export class DashboardPanel extends React.Component<Props, State> {
}
componentDidUpdate() {
- // skip loading angular component if we have no element
- // or we have already loaded it
+ // skip loading angular component if we have no element or we have already loaded it
if (!this.element || this.angularPanel) {
return;
@@ -52,8 +52,6 @@ export class PanelEditor extends React.Component<PanelEditorProps, any> {
onVizTypeChanged = (plugin: PanelPlugin) => {
this.props.panel.type = plugin.id;
this.forceUpdate();
-
- console.log('panel type changed', plugin);
};
onChangeTab = (tab: PanelEditorTab) => {
@@ -1,5 +1,4 @@
.tabbed-view {
- margin-bottom: $dashboard-padding;
display: flex;
flex-direction: column;
height: 100%;
@@ -45,8 +44,10 @@
.tabbed-view-body {
- padding: $spacer*2 $spacer;
- height: 100%;
+ padding: $spacer*2 $spacer $spacer $spacer;
+ display: flex;
+ flex-direction: column;
+ flex: 1;
&--small {
min-height: 0px;
@@ -4,7 +4,7 @@
.viz-editor-col1 {
- width: 240px;
+ width: 210px;
margin-right: 40px;
@@ -16,14 +16,15 @@
.viz-picker {
+ height: 100%;
.viz-picker-list {
- padding: 3px 8px;
+ padding-top: $spacer;
overflow: hidden;
+ flex-grow: 1;
.viz-picker__item {
@@ -35,9 +36,10 @@
width: 100%;
height: 60px;
text-align: center;
- margin: $gf-form-margin;
+ margin-bottom: 6px;
cursor: pointer;
+ flex-shrink: 0;
&:hover {
background: $card-background-hover;
@@ -60,7 +62,7 @@
text-overflow: ellipsis;
white-space: nowrap;
- font-size: $font-size-sm;
+ font-size: $font-size-h5;
align-self: center;