diff --git a/public/app/features/dashboard/dashgrid/DashboardPanel.tsx b/public/app/features/dashboard/dashgrid/DashboardPanel.tsx index 33f30b7188b..11f06113617 100644 --- a/public/app/features/dashboard/dashgrid/DashboardPanel.tsx +++ b/public/app/features/dashboard/dashgrid/DashboardPanel.tsx @@ -31,6 +31,8 @@ export class DashboardPanel extends React.Component { } } + + render() { return (
this.element = element} /> diff --git a/public/app/features/dashboard/dashgrid/DashboardRow.tsx b/public/app/features/dashboard/dashgrid/DashboardRow.tsx new file mode 100644 index 00000000000..8b6aaf45722 --- /dev/null +++ b/public/app/features/dashboard/dashgrid/DashboardRow.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import {PanelModel} from '../panel_model'; + +export interface DashboardRowProps { + panel: PanelModel; +} + +export class DashboardPanel extends React.Component { + constructor(props) { + super(props); + + this.toggle = this.toggle.bind(this); + this.openSettings = this.openSettings.bind(this); + } + + toggle() {} + + openSettings() {} + + render() { + return ( +
+
+
+ + +
+ + {this.props.panel.title} + +
+ + + +
+
+
(0 hidden panels)
+
+
+ ); + } +} diff --git a/public/app/features/dashboard/dashnav/dashnav.ts b/public/app/features/dashboard/dashnav/dashnav.ts index 89d961c55d1..6aa8c1a0c7e 100644 --- a/public/app/features/dashboard/dashnav/dashnav.ts +++ b/public/app/features/dashboard/dashnav/dashnav.ts @@ -148,7 +148,7 @@ export class DashNavCtrl { addPanel() { this.dashboard.addPanel({ type: 'graph', - gridPos: {x: 0, y: 0, w: 12, h: 7}, + gridPos: {x: 0, y: 0, w: 12, h: 9}, title: 'New Graph', }); } diff --git a/public/sass/components/_navbar.scss b/public/sass/components/_navbar.scss index 8456af7b152..ab1cba4fd23 100644 --- a/public/sass/components/_navbar.scss +++ b/public/sass/components/_navbar.scss @@ -62,40 +62,6 @@ background-color: $navbarLinkBackgroundActive; } -.navbar-page-btn { - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - display: block; - margin: 0; - color: darken($link-color, 5%); - font-size: $font-size-lg; - padding: 1rem 1rem 0.75rem 1rem; - min-height:: $navbarHeight; - - .fa-caret-down { - font-size: 60%; - padding-left: 0.2rem; - } - - .icon-gf { - position: relative; - top: 2px; - font-size: 20px; - line-height: 8px; - margin-right: 0.5rem; - } - - > img { - max-width: 27px; - max-height: 27px; - } - - &--search { - padding: 1rem 1.5rem 0.75rem 1.5rem; - } -} - .navbar-page-btn { text-overflow: ellipsis; overflow: hidden;