From f6457a2023e83d5631666df23ac45fbd7d54ebe3 Mon Sep 17 00:00:00 2001 From: bergquist Date: Wed, 24 Feb 2016 11:56:45 +0100 Subject: [PATCH] ux(templating): tight-form -> gf-form --- public/app/core/directives/dash_edit_link.js | 8 +-- .../features/annotations/partials/editor.html | 50 +++++++------- .../features/templating/partials/editor.html | 69 +++++++++---------- public/app/partials/edit_json.html | 13 ++-- public/sass/components/_dashboard.scss | 4 -- 5 files changed, 64 insertions(+), 80 deletions(-) diff --git a/public/app/core/directives/dash_edit_link.js b/public/app/core/directives/dash_edit_link.js index 7ba96f50500..23855925541 100644 --- a/public/app/core/directives/dash_edit_link.js +++ b/public/app/core/directives/dash_edit_link.js @@ -45,7 +45,6 @@ function ($, coreModule) { if (editview) { scope.contextSrv.editview = editViewMap[editview]; payload.src = scope.contextSrv.editview.src; - payload.cssClass = "tabbed-view"; } if (lastEditor === payload.src) { @@ -74,12 +73,7 @@ function ($, coreModule) { }; var src = "'" + payload.src + "'"; - var cssClass = payload.cssClass || 'gf-box'; - var view = $('
'); - - if (payload.cssClass) { - view.addClass(payload.cssClass); - } + var view = $('
'); elem.append(view); $compile(elem.contents())(editorScope); diff --git a/public/app/features/annotations/partials/editor.html b/public/app/features/annotations/partials/editor.html index d0030823581..b9ad4c38015 100644 --- a/public/app/features/annotations/partials/editor.html +++ b/public/app/features/annotations/partials/editor.html @@ -30,33 +30,31 @@
-
-
- No annotations defined -
- - - - - - - - - -
-   - {{annotation.name}} - - - - Edit - - - - - -
+
+ No annotations defined
+ + + + + + + + + +
+   + {{annotation.name}} + + + + Edit + + + + + +
diff --git a/public/app/features/templating/partials/editor.html b/public/app/features/templating/partials/editor.html index 95899bfc839..f4d45acbefc 100644 --- a/public/app/features/templating/partials/editor.html +++ b/public/app/features/templating/partials/editor.html @@ -1,41 +1,38 @@
-
-
- +
+

Templating -

+ - - - -
-
+
-
No template variables defined
@@ -49,27 +46,27 @@ {{variable.query}} + + + - + + Duplicate + + + + Edit - - - Duplicate - - - - - + -
diff --git a/public/app/partials/edit_json.html b/public/app/partials/edit_json.html index b38e9d059f2..48d2237376b 100644 --- a/public/app/partials/edit_json.html +++ b/public/app/partials/edit_json.html @@ -1,16 +1,15 @@
-
-
- - JSON -
+
+

+ JSON +

-
-
+
diff --git a/public/sass/components/_dashboard.scss b/public/sass/components/_dashboard.scss index 97f8d62dc29..cec89b49fdc 100644 --- a/public/sass/components/_dashboard.scss +++ b/public/sass/components/_dashboard.scss @@ -280,7 +280,3 @@ div.flot-text { padding: 1.2rem .5rem .4rem .5rem; } } - -.json-box-body { - min-height: 500px; -}