Parcourir la source

ux: minor updates to dashboard settings

Torkel Ödegaard il y a 8 ans
Parent
commit
7b0bbefb96

+ 1 - 1
public/app/features/dashboard/history/history.html

@@ -1,5 +1,5 @@
 <h3 class="dashboard-settings__header">
-  <a ng-click="ctrl.switchMode('list')">Version History</a>
+  <a ng-click="ctrl.switchMode('list')">Versions</a>
   <span ng-show="ctrl.mode === 'compare'">
     &gt; Comparing {{ctrl.baseInfo.version}}
     <i class="fa fa-arrows-h"></i>

+ 0 - 2
public/app/features/dashboard/history/history.ts

@@ -1,5 +1,3 @@
-///<reference path="../../../headers/common.d.ts" />
-
 import './history_srv';
 
 import _ from 'lodash';

+ 1 - 1
public/app/features/dashboard/settings/settings.html

@@ -23,7 +23,7 @@
 </aside>
 
 <div class="dashboard-settings__content" ng-if="ctrl.viewId === 'settings'">
-	<h3 class="dashboard-settings__header">
+	<h3 class="dashboard-settings__header m-b-1">
 		General
 	</h3>
 

+ 0 - 1
public/sass/components/_dashboard_settings.scss

@@ -35,7 +35,6 @@
 .dashboard-settings__aside-header {
   color: $text-muted;
   font-size: $font-size-h3;
-  margin-bottom: 20px;
   padding-right: 60px;
   white-space: nowrap;
 

+ 8 - 3
public/sass/components/_gf-form.scss

@@ -85,6 +85,14 @@ $input-border: 1px solid $input-border-color;
   }
 }
 
+.gf-form-label + .gf-form-label {
+  margin-right: $gf-form-margin;
+}
+
+.gf-form + .gf-form {
+  margin-right: $gf-form-margin;
+}
+
 .gf-form-pre {
   display: block;
   flex-grow: 1;
@@ -254,9 +262,6 @@ $input-border: 1px solid $input-border-color;
   margin-right: $gf-form-margin;
   line-height: $input-line-height;
   font-size: $font-size-sm;
-  box-shadow: none;
-  @include border-radius($label-border-radius-sm);
-  border: $input-btn-border-width solid transparent;
 
   flex-shrink: 0;
   flex-grow: 0;

+ 4 - 0
public/sass/components/_query_editor.scss

@@ -33,6 +33,10 @@
   .gf-form-label {
     margin-right: 2px;
   }
+
+  .gf-form + .gf-form {
+    margin-right: 0;
+  }
 }
 
 .gf-form-query-content {